Exemple #1
0
    void Logic_HandleInput(RoleBase role, PlayerOperation op)
    {
        switch (op.Keyinput)
        {
        case "A": role.Logic_MoveLeft();
            break;

        case "W": role.Logic_MoveUp();
            break;

        case "D": role.Logic_MoveRight();
            break;

        case "S": role.Logic_MoveDown();
            break;

        default:
            break;
        }
    }