public virtual void InitLogic(MyBotLogic botLogic) { m_botLogic = botLogic as MyAgentLogic; if (HasLogic) { m_botLogic.Init(); if (AgentEntity != null) { AgentLogic.OnCharacterControlAcquired(AgentEntity); } } }