public override void init(Behavior specif, InstanceSpecification host, Dictionary <string, ValueSpecification> p, bool sync) { base.init(specif, host, p, sync); agent = (Agent)host; ui = GameObject.Find("Canvas").GetComponent <EE_UI>(); ui.DecisionAgent = agent; if (agent.name == "PlayerAuto") { ui.DecisionAgent = MascaretUtils.getAgent("Player"); } agentC = GameObject.Find(ui.DecisionAgent.name).GetComponent <AgentController>(); ui = GameObject.Find("Canvas").GetComponent <EE_UI>(); }