static void Main(string[] args) { FactoryMethod factory = new FactoryMethod(); var character = factory.ChooseCharacter("SubZero"); character.Chosen(); }
public static void Main(string[] args) { FactoryMethod fm = new FactoryMethod(); Console.WriteLine("Liu Kang | SubZero | Scorpion"); Console.WriteLine(); Console.Write("Choose your Character: "); string option = Console.ReadLine(); ICharacter character = fm.ChooseCharacter(option); Console.WriteLine(); Console.Write("You'll play with: "); character.Choosen(); Console.ReadKey(); }