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