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(); }
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(); }