// 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; }
void Start() { unit = GameObject.FindGameObjectWithTag("UnitInfo").GetComponent <UnitMetal>(); }
// Start is called before the first frame update void Start() { //Finds the Metal Prefab>>UnitMetal unit = GameObject.FindGameObjectWithTag("UnitInfo").GetComponent <UnitMetal>(); UpdateUI(); }