Exemple #1
0
    void Phase3()
    {
        if (eyeToggle > 5.0f)
        {
            leftEye.ToggleOpen();
            rightEye.ToggleOpen();
            eyeToggle = 0.0f;
        }

        if (bigEyeToggle > 5.0f)
        {
            bigEye.ToggleOpen();
            bigEyeToggle = 0.0f;
        }

        if (leftEye.IsDead() && rightEye.IsDead() && bigEye.IsDead())
        {
            NextPhase();
        }
    }