Ejemplo n.º 1
0
        // Token: 0x0600025A RID: 602 RVA: 0x0001652C File Offset: 0x0001472C
        public static Task PasteTask(BehaviorSource behaviorSource, TaskSerializer serializer)
        {
            Dictionary <int, Task> dictionary = new Dictionary <int, Task>();
            Task task = JSONDeserialization.DeserializeTask(behaviorSource, MiniJSON.Deserialize(serializer.serialization) as Dictionary <string, object>, ref dictionary, serializer.unityObjects);

            TaskCopier.CheckSharedVariables(behaviorSource, task);
            return(task);
        }
Ejemplo n.º 2
0
        public static TaskSerializer CopySerialized(Task task)
        {
            TaskSerializer taskSerializer = new TaskSerializer();

            taskSerializer.offset        = (task.NodeData.NodeDesigner as NodeDesigner).GetAbsolutePosition() + new Vector2(10f, 10f);
            taskSerializer.unityObjects  = new List <UnityEngine.Object>();
            taskSerializer.serialization = MiniJSON.Serialize(SerializeJSON.SerializeTask(task, false, ref taskSerializer.unityObjects));
            return(taskSerializer);
        }
Ejemplo n.º 3
0
        public static Task PasteTask(BehaviorSource behaviorSource, TaskSerializer serializer)
        {
            Dictionary <int, Task> dictionary = new Dictionary <int, Task>();

            return(DeserializeJSON.DeserializeTask(behaviorSource, MiniJSON.Deserialize(serializer.serialization) as Dictionary <string, object>, ref dictionary, serializer.unityObjects));
        }