Beispiel #1
0
 void Start()
 {
     m_navMeshAgent = this.GetComponent <NavMeshAgent>();
     m_currentState = new CombatStage(m_movingAgent, target, m_navMeshAgent);
     m_movingAgent.setHealth(health);
     m_movingAgent.setWeponFireCapability(false);
     intializeAgentCallbacks(m_movingAgent);
     m_movingAgent.setFaction(m_agentFaction);
     m_movingAgent.setSkill(skillLevel);
     m_movingAgent.enableTranslateMovment(false);
 }
 public virtual void setWeaponFireCapability(bool enabled)
 {
     m_selfAgent.setWeponFireCapability(enabled);
 }