public PetModel petModel;
public Transform petContainer;
public EndGamePopup endGamePopup; //Reference
void Start()
{
petModel = GameInstance.Instance.InstantiatePetModel(petContainer);
}
public void EndGame()
{
endGamePopup.gameObject.SetActive(true);
endGamePopup.Initialize(
finalScore: 1200, // 🔢 The player's score at the end of the game
currencyId: "GO", // 💰 The ID of the currency used for the reward (must exist in GameInstance)
currencyAmount: 5, // 🎁 How much currency the player will receive as a reward
won: true, // 🏆 Whether the player won (true) or lost (false) the minigame
gameId: "JumpSky" // 🕹️ Unique identifier for this minigame (used for best score tracking)
);
}