コード例 #1
0
ファイル: MenuTimer.cs プロジェクト: UniSpark/speechGame
        /**
         * <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);
        }
コード例 #2
0
ファイル: MenuTimer.cs プロジェクト: UniSpark/speechGame
        private void CopyTimer(MenuTimer _element)
        {
            uiSlider     = _element.uiSlider;
            doInvert     = _element.doInvert;
            timerTexture = _element.timerTexture;
            timerType    = _element.timerType;

            base.Copy(_element);
        }
コード例 #3
0
ファイル: MenuTimer.cs プロジェクト: IJkeB/Ekster_Final
        public void CopyTimer(MenuTimer _element)
        {
            uiSlider = _element.uiSlider;
            doInvert = _element.doInvert;
            timerTexture = _element.timerTexture;
            timerType = _element.timerType;

            base.Copy (_element);
        }
コード例 #4
0
ファイル: MenuTimer.cs プロジェクト: sirmortimus/team9
        private void CopyTimer(MenuTimer _element, bool ignoreUnityUI)
        {
            if (ignoreUnityUI)
            {
                uiSlider = null;
            }
            else
            {
                uiSlider = _element.uiSlider;
            }

            doInvert              = _element.doInvert;
            timerTexture          = _element.timerTexture;
            timerType             = _element.timerType;
            uiSelectableHideStyle = _element.uiSelectableHideStyle;

            base.Copy(_element);
        }
コード例 #5
0
ファイル: MenuTimer.cs プロジェクト: Keraunic-Tonic/GJ2021
        private void CopyTimer(MenuTimer _element, bool ignoreUnityUI)
        {
            if (ignoreUnityUI)
            {
                uiSlider = null;
            }
            else
            {
                uiSlider = _element.uiSlider;
            }

            doInvert              = _element.doInvert;
            timerTexture          = _element.timerTexture;
            timerType             = _element.timerType;
            uiSelectableHideStyle = _element.uiSelectableHideStyle;
            smoothingFactor       = _element.smoothingFactor;
            autoSetVisibility     = _element.autoSetVisibility;

            base.Copy(_element);
        }
コード例 #6
0
		public void CopyTimer (MenuTimer _element)
		{
			timerTexture = _element.timerTexture;
			
			base.Copy (_element);
		}