Beispiel #1
0
        public override void OnStart()
        {
            m_partyScript = GetComponent <PartyScript>();
            m_party       = m_partyScript.GetParty();

            m_enemyScript = enemy.Value.GetComponent <PartyScript>();
            m_enemyParty  = m_enemyScript.GetParty();
        }
Beispiel #2
0
        public void Awake()
        {
            m_agent    = GetComponent <NavMeshAgent>();
            m_tree     = GetComponent <BehaviorTree>();
            m_animator = GetComponent <Animator>();
            m_script   = GetComponent <PartyScript>();

            m_party        = m_script.GetParty();
            strongestEnemy = null;
        }
Beispiel #3
0
        public override void OnStart()
        {
            m_aiManager = GetComponent <AIManager>();
            m_animator  = GetComponent <Animator>();
            m_agent     = GetComponent <NavMeshAgent>();

            m_partyScript = GetComponent <PartyScript>();
            m_enemyScript = enemy.Value.GetComponent <PartyScript>();

            m_party      = m_partyScript.GetParty();
            m_enemyParty = m_enemyScript.GetParty();
        }