Ejemplo n.º 1
0
 private void Start()
 {
     if (itemOnDisplay.equiped)
     {
         selectionIndicator.SetActive(true);
     }
     else
     {
         selectionIndicator.SetActive(false);
     }
     shopInGameManager = GameObject.FindObjectOfType <ShopInGameManager>();
 }
Ejemplo n.º 2
0
    void Start()
    {
        GameServices.Init();

        winPanel.SetActive(false);
        losePanel.SetActive(false);
        gamePanel.SetActive(false);
        mainMenuPanel.SetActive(true);
        coinsAmount = PlayerPrefs.GetInt("coinsAmount", 0);

        currentLevel = PlayerPrefs.GetInt("lastLevel", 0);

        moves          = startMoves;
        movesText.text = "Moves: " + moves.ToString();

        allObsticles      = FindObjectOfType <AllObsticles>();
        allTargets        = FindObjectOfType <AllTargets>();
        shopInGameManager = GetComponent <ShopInGameManager>();
        LoadLastGameEquipment();
        CreateLevelsList(70);
    }