Beispiel #1
0
 void Awake()
 {
     nMA          = gameObject.GetComponent <NavMeshAgent> ();
     medBehaviour = gameObject.GetComponent <AlertState> ();
     medSounds    = gameObject.GetComponent <MedusaSounds> ();
     beamThing    = new Vector3(transform.position.x, transform.position.y + 2, transform.position.z);
 }
Beispiel #2
0
 void Awake()
 {
     agent       = gameObject.GetComponent <NavMeshAgent> ();
     medMovement = gameObject.GetComponent <MedusaMovement> ();
     medSounds   = gameObject.GetComponent <MedusaSounds> ();
 }