Add most of research
This commit is contained in:
17
GOAP/Assets/Scrips/Actions/GoHome.cs
Normal file
17
GOAP/Assets/Scrips/Actions/GoHome.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Unity.VisualScripting;
|
||||
using UnityEngine;
|
||||
|
||||
public class GoHome : AI_Action
|
||||
{
|
||||
public override bool PrePerform()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool PostPerform()
|
||||
{
|
||||
AI_World.Instance.GetWorld().ModifyState("Home", 1);
|
||||
Destroy(this.gameObject);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user