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