public void DeSerializeEditorSettings(NavGraph graph, ISerializableGraphEditor editor, AstarPath active) { if (editor == null) { Debug.LogError("The editor specified is Null"); return; } editor.DeSerializeSettings(graph, this); }
public void SerializeEditorSettings(NavGraph graph, ISerializableGraphEditor editor, AstarPath active) { if (editor == null) { Debug.LogError("The editor specified is Null"); return; } //The script will return to this value and write the number of variables serialized with the simple serializer positionAtCounter = (int)writerStream.BaseStream.Position; writerStream.Write(0); //This will be overwritten counter = 0; editor.SerializeSettings(graph, this); }
public void DeSerializeEditorSettings(NavGraph graph, ISerializableGraphEditor editor, AstarPath active) { if (editor == null) { Debug.LogError ("The editor specified is Null"); return; } editor.DeSerializeSettings (graph,this); }
public void SerializeEditorSettings(NavGraph graph, ISerializableGraphEditor editor, AstarPath active) { if (editor == null) { Debug.LogError ("The editor specified is Null"); return; } //The script will return to this value and write the number of variables serialized with the simple serializer positionAtCounter = (int)writerStream.BaseStream.Position; writerStream.Write (0);//This will be overwritten counter = 0; editor.SerializeSettings (graph,this); }