Пример #1
0
    void HandleCommand(MoveCommand moveCommand)
    {
        MoveEvent moveEvent = MoveEventsManager.GetMoveEvent(moveCommand.type);

        if (moveEvent == null)
        {
            return;
        }
        moveEvent.Exec(moveCommand.value);
    }