示例#1
0
        public override MenuElement DuplicateSelf(bool fromEditor, bool ignoreUnityUI)
        {
            MenuInteraction newElement = CreateInstance <MenuInteraction>();

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

            newElement.Declare();
            newElement.CopyInteraction(this);
            return(newElement);
        }