void Awake()
 {
     if (instance != null)
     {
         return;
     }
     instance = this;
 }
Beispiel #2
0
 void Start()
 {
     rend       = GetComponent <Renderer>();
     startColor = rend.material.color;
     makeTurret = MakeTurret.instance;
 }
Beispiel #3
0
 public void purchaseFreezer()
 {
     makeTurret = MakeTurret.instance;
     Debug.Log("Freezer purchased");
     makeTurret.SelectWeaponToBuild(freezer);
 }
Beispiel #4
0
 public void purchaseDestroyer()
 {
     makeTurret = MakeTurret.instance;
     Debug.Log("Destroyer purchased");
     makeTurret.SelectWeaponToBuild(destroyer);
 }
Beispiel #5
0
 public void purchaseTurret()
 {
     makeTurret = MakeTurret.instance;
     Debug.Log("Turret purchased");
     makeTurret.SelectWeaponToBuild(turret);
 }
Beispiel #6
0
 void start()
 {
     makeTurret = MakeTurret.instance;
 }