void Awake() { if (instance != null) { Debug.LogError("More than one BuildManager in scene!"); return; } instance = this; }
void Start() { rend = GetComponent <Renderer>(); //startColor = rend.material.color; buildManager = L_BuildManager.instance; // rend.material.color = Color.red; // rend.material.shader = Shader.Find("_Color"); //rend.material.SetColor("_Color", Color.green); powerUps = GameObject.FindObjectOfType <PowerUps>(); }
// This is for initialization private void Start() { buildManager = L_BuildManager.instance; }
void Start() { buildmanager = L_BuildManager.instance; }
void Start() { totalTime = maxtime; buildManager = L_BuildManager.instance; }
// Use this for initialization void Start() { instance = this; buildmanager = L_BuildManager.instance; }
// Use this for initialization void Start() { buildManager = L_BuildManager.instance; PU = GameObject.FindObjectOfType <PowerUps>(); }