void Awake() { //_state = new AgentState(AgentState.EXPLORER); switch (controllerType){ case OPTIONS.FSMAI: _controller=AIController.CreateInstance<FSMAI>();//gameObject); break; case OPTIONS.RandomAI: _controller = AIController.CreateInstance<RandomAI>(); break; case OPTIONS.BTAI: _controller = AIController.CreateInstance<BT.BTAI>(); break; } //_controller.Init(); }
public override void Start(AI ai) { base.Start(ai); control = ai.WorkingMemory.GetItem<AIController>("controller"); }