コード例 #1
0
        public bool Update()
        {
            if (waitToHide > 0.0f)
            {
                waitToHide -= Constants.kFrameRate;
                if (waitToHide <= 0.0f)
                {
                    this.Hide();
                }
            }

            if (unityText != null)
            {
                unityText.UpdateNewNew();
            }

            dimZob.Update();
            backdrop.Update();
            text.Update();
            for (int i = 0; i < (int)QueryButton.kNumButtonsOnQuery; i++)
            {
                (button[i]).Update();
            }

            if (!newStyleQuery)
            {
                for (int i = 0; i < (int)Enum.kMaxFunnyWordsInQuery; i++)
                {
                    if (funnyWord[i] != null)
                    {
                        (funnyWord[i]).Update();
                    }
                }
            }

            for (int i = 0; i < (int)Enum.kMaxCentralButtonsInQuery; i++)
            {
                if (buttonText[i] != null)
                {
                    buttonText[i].Update();
                }
            }

            //    if (backdrop.state ==  ZobjectState.kZobjectShown) {
            //      if (chosenButton != (QueryButton)(-1)) {
            //        this.Hide();
            //      return true;
            // }

            //   }

            return(false);
        }
コード例 #2
0
 public void Update()
 {
     character.Update();
     speechBubble.Update();
     (commentLine[0]).Update();
     (commentLine[1]).Update();
 }
コード例 #3
0
        public bool Update()
        {
            shownTimer += Constants.kFrameRate;
            for (int i = 0; i < (int)Enum.kNumCommentLines; i++)
            {
                (commentLine[i]).Update();
            }

            speedObject.Update();
            sheepPic.Update();
            infoBubbleBackground.Update();
            doneButton.Update();
            if ((doneButton.zobject).state == ZobjectState.kZobjectHiding)
            {
                return(true);
            }

            return(false);
        }
コード例 #4
0
        public bool Update()
        {
            this.UpdateClickedFlag();
            zobject.Update();
            if (zobjectLabel != null)
            {
                zobjectLabel.Update();
            }

            if (makeClickableWhenShown)
            {
                if (zobject.state == ZobjectState.kZobjectShown)
                {
                    makeClickableWhenShown = false;
                    isClickable            = true;
                }
            }

            return(clickedOneFrame);
        }
コード例 #5
0
ファイル: Zbar.cs プロジェクト: rossstyants/FleeceLightning
        public void Update()
        {
            if ((int)type == (int)BarType.e_MovingObject)
            {
                float ratio = Utilities.GetRatioP1P2(displayFillLevel, 0, fillMaximum);
                position = Utilities.GetPositionBetweenP1P2(ratio, startPosition, endPosition);
                zobject.SetScreenPosition(position);
                zobject.Update();
            }

            if (state != ZbarStateEnum.kZbarState_Shown)
            {
                {
                    state = ZbarStateEnum.kZbarState_Shown;
                }
            }
            else
            {
                displayFillLevel = displayFillLevel + ((fillLevel - displayFillLevel) * 0.2f);
            }
        }
コード例 #6
0
        public void UpdateTransition_UseZobject()
        {
            if ((int)type == (int)TransitionType.e_WhirlingShape)
            {
                spinningWord.Update();
            }

            zobject.Update();
            if (!transitionReceding)
            {
                if (nearlyReady)
                {
                    timeToDoStuff      = true;
                    transitionReceding = true;
                    transitionTimer    = 0;
                    this.StartReceding();
                }
                else
                {
                    if (zobject.state == ZobjectState.kZobjectShown)
                    {
                        nearlyReady = true;
                    }
                }
            }
            else
            {
                if (zobject.state == ZobjectState.kZobjectHidden)
                {
                    inTransition = false;
                    if (spinningWord != null)
                    {
                        spinningWord.Disappear();
                    }
                }
            }
        }