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

        buildManger = BuildManger.instance;
    }
Exemple #2
0
 private void Start()
 {
     childObj    = transform.GetChild(0).gameObject;
     buildManger = BuildManger.instance;
     rend        = GetComponent <Renderer>();
     //startColor = rend.material.color;
 }
Exemple #3
0
 private void Awake()
 {
     if (instance != null)
     {
         Debug.LogError("here has been set turret");
         return;
     }
     instance = this;
 }
Exemple #4
0
 void Awake()
 {
     if (instance != null)
     {
         Debug.LogError("More than one BM in Scene");
         return;
     }
     instance = this;
 }
Exemple #5
0
    private void Start()
    {
        buildManager = BuildManger.instance;

        CrystalText.text  = "$" + towerCrystal.cost;
        CrossbowText.text = "$" + towerCross.cost;
        TeslaText.text    = "$" + towerTesla.cost;
        CannonText.text   = "$" + towerCannon.cost;
    }
Exemple #6
0
 void Awake()
 {
     if (instance != null)
     {
         Debug.LogError("More than one BuildManager in scene!");
         return;
     }
     instance = this;
 }
Exemple #7
0
 void Start()
 {
     buildManger = BuildManger.instance;
 }