void Start() { rend = GetComponent <Renderer>(); startColor = rend.material.color; buildManager = BuildManager.instance; sounds = SoundsControler.instance; }
void Awake() { if (instance != null) { Debug.LogError("More than one BuildManager in scene!"); } instance = this; }
void Start() { InvokeRepeating("UpdateTarget", 0f, 0.5f); sounds = SoundsControler.instance; maxHealth = health; }