예제 #1
0
        public override MenuElement DuplicateSelf()
        {
            MenuCrafting newElement = CreateInstance <MenuCrafting>();

            newElement.Declare();
            newElement.CopyCrafting(this);
            return(newElement);
        }
예제 #2
0
        /**
         * <summary>Creates and returns a new MenuCrafting that has the same values as itself.</summary>
         * <param name = "fromEditor">If True, the duplication was done within the Menu Manager and not as part of the gameplay initialisation.</param>
         * <returns>A new MenuCrafting with the same values as itself</returns>
         */
        public override MenuElement DuplicateSelf(bool fromEditor, bool ignoreUnityUI)
        {
            MenuCrafting newElement = CreateInstance <MenuCrafting>();

            newElement.Declare();
            newElement.CopyCrafting(this, ignoreUnityUI);
            return(newElement);
        }