示例#1
0
    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);
    }
示例#2
0
 public void Start()
 {
     m_movingAgent.setHealth(health);
     m_movingAgent.enableTranslateMovment(false);
     intializeAgentCallbacks(m_movingAgent);
 }