void Start() { if (IsInCorrectScene()) { gameMaster = GameObject.FindGameObjectWithTag("GameMaster"); sphereShop = GameObject.FindGameObjectWithTag("Icosphere").GetComponent <SphereShop>(); mouseCursorManager = gameMaster.GetComponent <MouseCursorManager>(); deathManager = gameMaster.GetComponent <DeathManager>(); buildManager = gameMaster.GetComponent <BuildManager>(); towerManager = gameMaster.GetComponent <TowerManager>(); shopScript = gameMaster.GetComponent <InstancesManager>().GetShopGObj().GetComponent <Shop>(); soulsCounter = SoulsCounter.instance; scoreCounter = ScoreCounter.instance; towerToBuild = null; isAlreadBuilt = false; } }
private void Start() { sphereShop = GameObject.FindGameObjectWithTag("Icosphere").GetComponent <SphereShop>(); normalBullet.GetComponent <SkillsProperties>().SetEffect(null); }