protected void Start() { m_selfAgent.togglepSecondaryWeapon(); m_selfAgent.setHealth(health); m_selfAgent.setFaction(m_agentFaction); m_selfAgent.setPrimayWeaponAmmoCount(10); m_selfAgent.setSecondaryWeaponAmmoCount(10); }
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); }