Пример #1
0
    private void TakeASeat(string keyDown)
    {
        if (keyDown == "w")
        {
            if (gridHelper.CanMoveUp())
            {
                transform.position = gridHelper.GetMoveUpPosition();
            }
        }
        else if (keyDown == "s")
        {
            if (gridHelper.CanMoveDown())
            {
                transform.position = gridHelper.GetMoveDownPosition();
            }
        }

        // after moving there will be a trigger with the cellview that the player moved to
        // and then the current player position will be updated
    }