Ejemplo n.º 1
0
        public override MenuElement DuplicateSelf(bool fromEditor, bool ignoreUnityUI)
        {
            MenuInventoryBox newElement = CreateInstance <MenuInventoryBox>();

            newElement.Declare();
            newElement.CopyInventoryBox(this, ignoreUnityUI);
            return(newElement);
        }
Ejemplo n.º 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);
        }