private void Start() { m_movingAgent = this.GetComponent <MovingAgent>(); m_movingAgent.setFaction(m_agentFaction); enemyHitLayerMask = LayerMask.GetMask("Enemy"); floorHitLayerMask = LayerMask.GetMask("Target"); m_healthBar = this.GetComponentInChildren <HealthBar>(); createTargetPlane(); m_movingAgent.setHealth(health); m_movingAgent.enableTranslateMovment(true); m_movingAgent.setSkill(1); intializeAgentCallbacks(m_movingAgent); //m_movingAgent.setOnDestoryCallback(OnAgentDestroy); //m_movingAgent.setOnDisableCallback(onAgentDisable); }
public void Start() { m_movingAgent.setHealth(health); m_movingAgent.enableTranslateMovment(false); intializeAgentCallbacks(m_movingAgent); }