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