public void RandomEvent() { Random spaceEvent = new Random(); int action = spaceEvent.Next(1, 10); int thing = action % 2; if (thing == 1) { ShipArt.ShipArtHorz(); NormalTravel(); ShipArt.EarthArt(); Thread.Sleep(2000); } else if (thing == 0 && action != 10) { ShipArt.ShipArtHorz(); SpacePirates(); Console.WriteLine("\nPress <enter> to continue"); Console.ReadLine(); ShipArt.ShipArtHorz(); ShipArt.EarthArt(); Thread.Sleep(2000); } }
static void Main(string[] args) { UserInterface ui = new UserInterface(); ShipArt display = new ShipArt(); display.ShipArtVertical(); Thread.Sleep(1000); Console.Clear(); ui.UIstart(); }