// Start is called before the first frame update
    void Start()
    {
        unit = GameObject.FindGameObjectWithTag("UnitInfo").GetComponent <UnitMetal>();
        prevConsolidation = unit.maxConsolidation;
        prevLength        = unit.currLength;

        //cameraSize = Camera.main.orthographicSize;
    }
Beispiel #2
0
 void Start()
 {
     unit = GameObject.FindGameObjectWithTag("UnitInfo").GetComponent <UnitMetal>();
 }
Beispiel #3
0
 // Start is called before the first frame update
 void Start()
 {
     //Finds the Metal Prefab>>UnitMetal
     unit = GameObject.FindGameObjectWithTag("UnitInfo").GetComponent <UnitMetal>();
     UpdateUI();
 }