public override MenuElement DuplicateSelf(bool fromEditor, bool ignoreUnityUI) { MenuJournal newElement = CreateInstance <MenuJournal>(); newElement.Declare(); newElement.CopyJournal(this, fromEditor, ignoreUnityUI); return(newElement); }
/** * <summary>Creates and returns a new MenuJournal that has the same values as itself.</summary> * <returns>A new MenuJournal with the same values as itself</returns> */ public override MenuElement DuplicateSelf() { MenuJournal newElement = CreateInstance <MenuJournal>(); newElement.Declare(); newElement.CopyJournal(this); return(newElement); }