Skip to content

Commit e4f45af

Browse files
committed
Create method on NPC script to change state to walk (For lose cutscene wip)
1 parent 619f4a4 commit e4f45af

File tree

1 file changed

+5
-0
lines changed
  • UOP1_Project/Assets/Scripts/Characters

1 file changed

+5
-0
lines changed

UOP1_Project/Assets/Scripts/Characters/NPC.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,10 @@ public class NPC : MonoBehaviour
88
{
99
public NPCState npcState; //This is checked by conditions in the StateMachine
1010
public GameObject[] talkingTo;
11+
12+
public void SwitchToWalkState()
13+
{
14+
npcState = NPCState.Walk;
15+
}
1116
}
1217

0 commit comments

Comments
 (0)