private void Start() { if (itemOnDisplay.equiped) { selectionIndicator.SetActive(true); } else { selectionIndicator.SetActive(false); } shopInGameManager = GameObject.FindObjectOfType <ShopInGameManager>(); }
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); }