public DialogueTree GetRealOne() { DialogueTree dialogueTree = new DialogueTree(); if (branches != null) { dialogueTree.branches = new BlitableArray <DialogueBranch>(branches.Length, Allocator.Persistent); for (int i = 0; i < branches.Length; i++) { dialogueTree.branches[i] = branches[i].GetReverseClone(); } } else { dialogueTree.branches = new BlitableArray <DialogueBranch>(0, Allocator.Persistent); } return(dialogueTree); }
public void OnAfterDeserialize() { dialogueTree = clone.GetRealOne(); // unless actuall i dont need to serialize some basic stuff? // dialogueTree.FromClone(clone); //Debug.LogError("OnAfterDeserialize - Branches: " + dialogueTree.branches.Length); }