Exemplo n.º 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();
        }
Exemplo n.º 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();
        }