mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-26 05:50:18 +00:00
add StartIdling()
This commit is contained in:
parent
c88314e4d5
commit
867ac634af
1 changed files with 9 additions and 2 deletions
|
@ -228,7 +228,7 @@ namespace SanAndreasUnity.Behaviours
|
|||
{
|
||||
if (null == this.TargetPed)
|
||||
{
|
||||
this.Action = PedAIAction.Idle;
|
||||
this.StartIdling();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -260,7 +260,7 @@ namespace SanAndreasUnity.Behaviours
|
|||
|
||||
if (null == this.TargetPed)
|
||||
{
|
||||
this.Action = PedAIAction.Idle;
|
||||
this.StartIdling();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -361,6 +361,13 @@ namespace SanAndreasUnity.Behaviours
|
|||
}
|
||||
}
|
||||
|
||||
public void StartIdling()
|
||||
{
|
||||
this.Action = PedAIAction.Idle;
|
||||
this.HasCurrentNode = false;
|
||||
this.HasTargetNode = false;
|
||||
}
|
||||
|
||||
public void StartWalkingAround(PathNode pathNode)
|
||||
{
|
||||
this.CurrentNode = pathNode;
|
||||
|
|
Loading…
Reference in a new issue