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

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

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