void Awake() { if (instance == null) { instance = this; } }
void Start() { rend = GetComponent <Renderer> (); startColor = rend.material.color; towerBildManager = TowerBuildManager.instance; }
void Awake() { if (instance != null) { Debug.Log("Can have only one tower build manager"); return; } instance = this; }
void Start() { towerBuildManager = TowerBuildManager.instance; standardTurretCost.text = standardTurret.cost.ToString(); missileTurretCost.text = missileTurret.cost.ToString(); laserBeamerCost.text = laserBeamer.cost.ToString(); aboutStandardTurretText.text = standardTurret.about; aboutMissileTurretText.text = missileTurret.about; aboutLaserBeamerText.text = laserBeamer.about; }
private void Start() { towerBuildManager = FindObjectOfType <TowerBuildManager>() as TowerBuildManager; }
private void ResetGame() { _player = null; _waveSpawner = null; _towerBuildManager = null; }
public void MakePlayerReady() { TowerBuildManager.GenerateStartingBuildableTowers(Player); PlayerReady = true; }
// Use this for initialization void Start() { diamondLabel = this.transform.Find("ResourceInfo/DiamondLabel").GetComponent <UILabel> (); diamondLabel.text = 0 + ""; tManager = new TowerBuildManager(); }
// Use this for initialization void Start () { diamondLabel = this.transform.Find ("ResourceInfo/DiamondLabel").GetComponent<UILabel> (); diamondLabel.text = 0 + ""; tManager = new TowerBuildManager (); }
void Awake(){ go1 = (GameObject)GameObject.Instantiate(Resources.Load("Circle")); _instance = this; }