public override void Start() { player = GameObject.Find("Player"); healthGUI = Instantiate(GameController.Instance.healthGUI).GetComponent <HealthGUI>(); healthGUI.target = gameObject; healthGUI.transform.SetParent(GameObject.FindGameObjectWithTag("MainCanvas").transform, false); turretBattery = gameObject.GetComponentInChildren <TurretBattery>(); base.Start(); }
public override void Start() { player = GameController.Instance.gpsm.player; turretBattery = gameObject.GetComponentInChildren <TurretBattery>(); base.Start(); }