Exemplo n.º 1
0
        public bool MoveShapeVerticalByKey()
        {
            GameObject shapeGO = m_shapePositionCoordinator.CurrentShape.ShapeGameObject;

            if (!m_gridManager.ValidateShapeMove(shapeGO, Vector3.down) && m_shapePositionCoordinator.IsShapeCanFallByTime(GetFallTime() / Сonstants.m_accelerationVerticalMove))
            {
                return(false);
            }

            m_shapePositionCoordinator.VerticalMoveShape(Vector3.down * Сonstants.m_scale, GetFallTime() / Сonstants.m_accelerationVerticalMove);
            return(true);
        }