// Use this for initialization internal void Init(GameObject obj, Environment env) { agent = obj; controller = agent.GetComponent<AgentAI>()._controller as FSMAI; environment = env; currentState = InitialState.GetInstance(); previousState = null; currentState.Enter(this); }
public override void Init(GameObject agent) { base.Init(agent); memory=new RAIN.Memory.BasicMemory(); memory.AIInit(rainAI); memory.SetItem<AIController>("controller",this); environment = GetEnvironment(); mind = new BasicMind(); mind.AIInit(rainAI); mind.AI.Body = agent; Debug.Log("SettingUP BasicMind: " + tree.name); mind.SetBehavior(tree, null); rainAI.WorkingMemory = memory; }
public override void Init(GameObject agent) { base.Init(agent); environment = GetEnvironment(); }
void Start() { if (environment_obj != null) environment = environment_obj.GetComponent<MCP_AI.Environment>(); }