Esempio n. 1
0
 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();
 }
Esempio n. 2
0
 public override void Start()
 {
     player        = GameController.Instance.gpsm.player;
     turretBattery = gameObject.GetComponentInChildren <TurretBattery>();
     base.Start();
 }