Example #1
0
 private void Awake()
 {
     trigger     = GameObject.Find("Trigger2");
     cannon      = GameObject.Find("cannon");
     bossHit     = false;
     chaseScript = trigger.GetComponent <BossChase>();
     for (int i = 0; i < waypoints.Length; i++)
     {
         waypoints[i] = chaseScript.waypoints[i];
     }
 }
Example #2
0
 private void Awake() {
     trigger = GameObject.Find("Trigger2");
     cannon = GameObject.Find("cannon");
     bossTimer = 0.0f;
     fallBossTimer = 0.0f;
     shootingTime = 6.821f;
     fallenTime = 5.0f;
     bossHit = false;
     waypointIndex = 0;
     chaseScript = trigger.GetComponent<BossChase>();
     for (int i = 0; i < waypoints.Length; i++)
     {
         waypoints[i] = chaseScript.waypoints[i];
     }
 }