void Start() { resouces = new GameResourcesStorage(); people = new People(); if (isFirstInColony) { people.AddPeople(50); objects.Add(new InBaseMoxie(this)); objects.Add(new InBaseVaporator(this)); } }
static void Main(string[] args) { int peopleCount = int.Parse(Console.ReadLine()); People AllPeople = new People(); for (int index = 0; index < peopleCount; index++) { string input = Console.ReadLine(); string[] NeededInfo = input .Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries) .ToArray(); string personName = NeededInfo[0]; int personAge = int.Parse(NeededInfo[1]); Person person = new Person(personName, personAge); AllPeople.AddPeople(person); } AllPeople.OldestPeople(); }