Esempio n. 1
0
 private void OnEnable()
 {
     // Instantiate all variables
     npc       = this.GetComponent <NPC_BaseClass>();
     idleState = this.GetComponent <IdleBasicState>();
     Avoiding  = null;
 }
Esempio n. 2
0
 protected virtual void OnEnable()
 {
     npc        = this.GetComponent <NPC_BaseClass>();
     idleState  = this;
     avoidState = this.GetComponent <AvoidState>();
 }
Esempio n. 3
0
 private void OnEnable()
 {
     npc         = this.GetComponent <NPC_BaseClass>();
     wanderState = this.GetComponent <WanderState>();
     avoidState  = this.GetComponent <AvoidState>();
 }