コード例 #1
0
        }                                                   ////@property(readwrite,assign) Zobject* zobject;

//public void SetspinningWord(Zobject inThing) {spinBackground = inThing;}////@property(readwrite,assign) Zobject* spinBackground;

        public static Ztransition GetTransition()
        {
//            static Ztransition staticInstance = null;
            if (staticInstance == null)
            {
                staticInstance = new Ztransition();
            }

            return(staticInstance);
        }
コード例 #2
0
        public bool Update()
        {
            bool inTransition = ((Ztransition.GetTransition()).inTransition) && ((Ztransition.GetTransition()).area == TransitionArea.
                                                                                 kTransition_Frontend);

            for (int i = 0; i < numButtons; i++)
            {
                (button[i]).Update();
            }

            for (int i = 0; i < numSwitches; i++)
            {
                (frontEndSwitch[i]).Update();
            }

            for (int i = 0; i < numFunnyWords; i++)
            {
                (funnyWord[i]).Update();
            }

            for (int i = 0; i < numNumbers; i++)
            {
                (number[i]).Update();
            }

            for (int i = 0; i < numQueries; i++)
            {
                if ((query[i]).Update())
                {
                    inQuery = false;
                    if ((query[i]).chosenButton == QueryButton.nYes)
                    {
                    }
                }
            }

            if (inTransition)
            {
                return(false);
            }

            if (pressedButton != -1)
            {
                pressedButton = -1;
                return(true);
            }

            if (pressedSwitch != -1)
            {
                pressedSwitch = -1;
                return(true);
            }

            return(false);
        }