Esempio n. 1
0
            public IState OnStateUpdate()
            {
                if (bomberMan.Active == false)
                {
                    timer.Update(false);
                }

                //Node.ShowPath();

                Console.WriteLine(timer.currentTime);
                if (timer.IsOver())
                {
                    timer.Stop(true);
                    OnStateExit();
                    NextLose.OnStateEnter();
                    return(NextLose);
                }

                return(this);
            }
Esempio n. 2
0
            public IState OnStateUpdate()
            {
                for (int i = 0; i < bomberMans.Count; i++)
                {
                    if (bomberMans[i].Active == false)
                    {
                        timer.Update(false);
                    }
                }
                Console.WriteLine("Multi");

                Node.ShowPath();

                Console.WriteLine(timer.currentTime);
                if (timer.IsOver())
                {
                    timer.Stop(true);
                    OnStateExit();
                    NextLose.OnStateEnter();
                    return(NextLose);
                }

                return(this);
            }