示例#1
0
        public void RunRoutine()
        {
            Routine idRoutine = new PersonIDRun();
            Routine secondOne;
            idRoutine.Init();
            Interaction result = idRoutine.Run();
            if (string.IsNullOrEmpty(result.playerName))
                secondOne = new CreatePlayer();
            else
                secondOne = new ChitChat();

            secondOne.Init();
            secondOne.Run();
        }
示例#2
0
        public void RunRoutine()
        {
            Routine idRoutine = new PersonIDRun();
            Routine secondOne;

            idRoutine.Init();
            Interaction result = idRoutine.Run();

            if (string.IsNullOrEmpty(result.playerName))
            {
                secondOne = new CreatePlayer();
            }
            else
            {
                secondOne = new ChitChat();
            }

            secondOne.Init();
            secondOne.Run();
        }