Example #1
0
    void Start()
    {
        rend       = GetComponent <Renderer>();
        startColor = rend.material.color;

        buildManager = BuildManager.instance;
        sounds       = SoundsControler.instance;
    }
Example #2
0
 void Awake()
 {
     if (instance != null)
     {
         Debug.LogError("More than one BuildManager in scene!");
     }
     instance = this;
 }
Example #3
0
 void Start()
 {
     InvokeRepeating("UpdateTarget", 0f, 0.5f);
     sounds    = SoundsControler.instance;
     maxHealth = health;
 }