Beispiel #1
0
 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;
     }
 }
Beispiel #2
0
 private void Start()
 {
     sphereShop = GameObject.FindGameObjectWithTag("Icosphere").GetComponent <SphereShop>();
     normalBullet.GetComponent <SkillsProperties>().SetEffect(null);
 }