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