protected override void onUpdate() { if (m_ghost.haveFinishedPath()) { updatePath(); } }
protected override void onUpdate() { if (m_ghost.haveFinishedPath()) { updateTarget(); } m_time -= Time.deltaTime; if (m_time < 0) { updateTarget(); } }
private void Update() { m_vulnerabilityTime -= Time.deltaTime; if (m_vulnerabilityTime <= 0) { m_animator.SetBool(vulnerableProperty, false); changeState(); } if (isEaten() && m_ghost.haveFinishedPath()) { m_eaten = false; m_animator.SetBool(eatenProperty, false); changeState(); } }