Ejemplo n.º 1
0
    IEnumerator StopLookback(LevController lev)
    {
        float waktu = delayLookback;

        while (lev.facingDirection == LevController.Direction.Right && lev.isGrounded && !lev.isJumping && lev.levAnimator.GetFloat("horizontalSpeed") > 0.01f && waktu > 0f)
        {
            waktu -= Time.deltaTime;
            yield return(null);
        }
        lev.stopLookBack();
    }