public static void RestoreDragDropCommands(string s) { if (string.IsNullOrEmpty(s)) { return; } var commands = JsonUtility.FromJson <DragDropCommands>(s); audioDragDropCommand = commands.audioDragDropCommand; gameObjectDragDropCommand = commands.gameObjectDragDropCommand; alternateGameObjectDragDropCommand = commands.alternateGameObjectDragDropCommand; }
private static void SetAudioDragDropCommand(object data) { audioDragDropCommand = (AudioDragDropCommand)data; }