Esempio n. 1
0
        /**
         * <summary>Creates and returns a new MenuTimer 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 MenuTimer with the same values as itself</returns>
         */
        public override MenuElement DuplicateSelf(bool fromEditor)
        {
            MenuTimer newElement = CreateInstance <MenuTimer>();

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