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