// Update is called once per frame void Update() { if (!m_gameEventDone) { if (m_character.IsDead()) { m_gameEventDone = true; GamePlayManager.Instance.ProcessGameEvent(m_gameEvent); } } }
override protected void Update() { base.Update(); m_characterAimer.SetEnabled(false); bool isMoving = false; if (!IsDead()) { if (m_targetCharacter) { if (!m_targetCharacter.IsDead()) { isMoving = UpdateEnemyAct(); } } } //Update anim vars m_animator.SetBool("AP_isMoving", isMoving); }