예제 #1
0
        public override MenuElement DuplicateSelf(bool fromEditor, bool ignoreUnityUI)
        {
            MenuInventoryBox newElement = CreateInstance <MenuInventoryBox>();

            newElement.Declare();
            newElement.CopyInventoryBox(this, ignoreUnityUI);
            return(newElement);
        }
예제 #2
0
        /**
         * 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);
        }