Ejemplo n.º 1
0
 private void OnEnable()
 {
     npc        = this.GetComponent <NPC_Citizen1>();
     idleState  = this.GetComponent <IdleBasicState>();
     avoidState = this.GetComponent <AvoidState>();
     // Slightly delay meeting so NPCs don't start out directly meeting
 }
Ejemplo n.º 2
0
 private void OnEnable()
 {
     npc             = this.GetComponent <NPC_Citizen1>();
     idleState       = this.GetComponent <IdleBasicState>();
     avoidState      = this.GetComponent <AvoidState>();
     _taskController = this.GetComponent <NPC_Task_Controller>();
     meetState       = this.GetComponent <MeetNPCState>();
     meetPlayerState = this.GetComponent <MeetPlayerState>();
 }
Ejemplo n.º 3
0
 private void OnEnable()
 {
     npc             = this.GetComponent <NPC_Citizen1>();
     idleState       = this.GetComponent <IdleBasicState>();
     avoidState      = this.GetComponent <AvoidState>();
     meetPlayerState = this.GetComponent <MeetPlayerState>();
     // Slightly delay meeting so NPCs don't start out directly meeting
     Invoke("ReadyToMeetAgain", meetingTime);
 }