Ejemplo n.º 1
0
        private void LateUpdate()
        {
            if (Time.time - _prevFallDelay > _gameStateModel.FallDelay)
            {
                _prevFallDelay = Time.time;
                Fell.SafeInvoke();

                Debugger.Log(LogEntryCategory.Tetromino, $"Figure {gameObject.name} moved down");
            }
        }
Ejemplo n.º 2
0
 private void CheckForRamp()
 {
     if (_groundDetector.CheckGround(_inclineTolerance))
     {
         ApplyGravity();
         VertMovement();
     }
     else if (_isGrounded == true)
     {
         _vertSpeed = 0;
         Fell.Invoke();
         _isGrounded = false;
         //Debug.Log("Fell");
     }
 }