private static void Main(string[] args) { GoToPlay play = new GoToPlay(); SomeM m = play.m; m.Accept(new NvShen()); Console.ReadLine(); }
public GoToPlay() { Random dom = new Random(); int num = dom.Next(3); if (num <= 1) { m = new Beach(); } else { m = new Snow(); } }