Exemple #1
0
 protected override void onUpdate()
 {
     if (m_ghost.haveFinishedPath())
     {
         updatePath();
     }
 }
Exemple #2
0
    protected override void onUpdate()
    {
        if (m_ghost.haveFinishedPath())
        {
            updateTarget();
        }

        m_time -= Time.deltaTime;
        if (m_time < 0)
        {
            updateTarget();
        }
    }
Exemple #3
0
    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();
        }
    }