Exemple #1
0
 /// <summary>
 /// Unity Function. Called once upon creation of the object.
 /// </summary>
 void Awake()
 {
     ringleaderMovement   = GetComponent <RingleaderMovement> ();
     enemyHealth          = GetComponent <RingleaderHealth> ();
     ringleaderAnimatable = GetComponent <RingleaderAnimatable> ();
     ringleaderController = GetComponent <RingleaderController>();
 }
Exemple #2
0
 public RingleaderHealth GetRingleaderHealth()
 {
     if (this.ringleaderHealth == null)
     {
         this.ringleaderHealth = GetComponent <RingleaderHealth>();
     }
     return(this.ringleaderHealth);
 }