private void InitializeComponents()
 {
     escape    = GetComponent <AIEscape>();
     wandering = GetComponent <AIWandering>();
     agressive = GetComponent <AIAgressive>();
     idle      = GetComponent <AIIdle>();
 }
Beispiel #2
0
    private void InitBotBehaviours()
    {
        m_animator = GetComponent <Animator>();

        m_aiSpawnUnit = m_animator.GetBehaviour <AISpawnUnit>();
        m_aiSpawnUnit.SetPlayerEntity(this);

        m_aiBuildObstacles = m_animator.GetBehaviour <AIBuildObstacle>();
        m_aiBuildObstacles.SetPlayerEntity(this);

        m_aiDestroyObstacles = m_animator.GetBehaviour <AIDestroyObstacle>();
        m_aiDestroyObstacles.SetPlayerEntity(this);

        m_aiFindClosestBuild = m_animator.GetBehaviour <AIFindClosestBuild>();

        m_aiRandomActions = m_animator.GetBehaviour <AIRandomActions>();

        m_aiMirrorPlayer = m_animator.GetBehaviour <AIMirrorPlayer>();

        m_aiCreateTeam = m_animator.GetBehaviour <AICreateTeam>();

        m_aiFindCkOnPath = m_animator.GetBehaviour <AIFindCkOnPath>();
        m_aiIdle         = m_animator.GetBehaviour <AIIdle>();

        m_aiStrat = m_animator.GetBehaviour <AIStrat>();
    }