Esempio n. 1
0
 void Awake()
 {
     if (instance != null)
     {
         Debug.LogError("More than one BuildManager in scene!");
         return;
     }
     instance = this;
 }
Esempio n. 2
0
    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>();
    }
Esempio n. 3
0
 // This is for initialization
 private void Start()
 {
     buildManager = L_BuildManager.instance;
 }
Esempio n. 4
0
 void Start()
 {
     buildmanager = L_BuildManager.instance;
 }
Esempio n. 5
0
 void Start()
 {
     totalTime    = maxtime;
     buildManager = L_BuildManager.instance;
 }
Esempio n. 6
0
 // Use this for initialization
 void Start()
 {
     instance     = this;
     buildmanager = L_BuildManager.instance;
 }
Esempio n. 7
0
 // Use this for initialization
 void Start()
 {
     buildManager = L_BuildManager.instance;
     PU           = GameObject.FindObjectOfType <PowerUps>();
 }