示例#1
0
        /**
         * <summary>Creates and returns a new MenuButton that has the same values as itself.</summary>
         * <returns>A new MenuButton with the same values as itself</returns>
         */
        public override MenuElement DuplicateSelf()
        {
            MenuButton newElement = CreateInstance <MenuButton>();

            newElement.Declare();
            newElement.CopyButton(this);
            return(newElement);
        }
示例#2
0
        public override MenuElement DuplicateSelf(bool fromEditor, bool ignoreUnityUI)
        {
            MenuButton newElement = CreateInstance <MenuButton>();

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