// Start is called before the first frame update void Start() { activated = false; health = 1; //Link to UI_Manager UI_Man = GameObject.Find("UI_Manager"); UI_values = UI_Man.GetComponent <UI_Manager_script>(); HUD2GO = GameObject.Find("Phase II"); HUD2Value = HUD2GO.GetComponent <HUD2_display>(); }
// Start is called before the first frame update void Start() { //Link to UI_Manager GameObject UI_Man = GameObject.Find("UI_Manager"); UI_values = UI_Man.GetComponent <UI_Manager_script>(); //Link to HUD1_display GameObject HUD1GO = GameObject.Find("Phase I"); HUD1Value = HUD1GO.GetComponent <HUD1_script>(); //Link to HUD2_display GameObject HUD2GO = GameObject.Find("Phase II"); HUD2Value = HUD2GO.GetComponent <HUD2_display>(); Owning_control = -1; Supply = false; Occupation = OccupationType.Free; }