Ejemplo n.º 1
0
		public override MenuElement DuplicateSelf (bool fromEditor, bool ignoreUnityUI)
		{
			MenuToggle newElement = CreateInstance <MenuToggle>();
			newElement.Declare ();
			newElement.CopyToggle (this, ignoreUnityUI);
			return newElement;
		}
Ejemplo n.º 2
0
        /**
         * <summary>Creates and returns a new MenuToggle 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 MenuToggle with the same values as itself</returns>
         */
        public override MenuElement DuplicateSelf(bool fromEditor)
        {
            MenuToggle newElement = CreateInstance <MenuToggle>();

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