void Start() { rend = GetComponent <Renderer>(); startColor = rend.material.color; buildManger = BuildManger.instance; }
private void Start() { childObj = transform.GetChild(0).gameObject; buildManger = BuildManger.instance; rend = GetComponent <Renderer>(); //startColor = rend.material.color; }
private void Awake() { if (instance != null) { Debug.LogError("here has been set turret"); return; } instance = this; }
void Awake() { if (instance != null) { Debug.LogError("More than one BM in Scene"); return; } instance = this; }
private void Start() { buildManager = BuildManger.instance; CrystalText.text = "$" + towerCrystal.cost; CrossbowText.text = "$" + towerCross.cost; TeslaText.text = "$" + towerTesla.cost; CannonText.text = "$" + towerCannon.cost; }
void Awake() { if (instance != null) { Debug.LogError("More than one BuildManager in scene!"); return; } instance = this; }
void Start() { buildManger = BuildManger.instance; }