Example #1
0
 public static T Create <T>(AgentBehaviour agent) where T : AgentAction, new()
 {
     T action = new T(); action.Init(agent); return(action);
 }
Example #2
0
 public static T Create <T>(AgentBehaviour agent, T action) where T : AgentAction, new()
 {
     return(Create <T>(agent));
 }
Example #3
0
 public void Init(AgentBehaviour agent)
 {
     this.agent = agent; isFinished = false;
 }
Example #4
0
 protected override void Reset()
 {
     base.Reset();
     behaviour  = null;
     aBehaviour = GetComponent <AgentBehaviour>();
 }