public void buildVolary() { if (volary != null) { volary.buildVolary(); } else { volary = new Volary(); } }
public string buildVolary() { if (volary != null) { int count = 0; count = volary.Count(); Console.WriteLine(count); if (count < 4) { volary.buildVolary(); Console.WriteLine("vbt"); } else { room.buildVolary(); Console.WriteLine("vbior"); } } else { volary = new Volary(); } return("Новий вольер збудовано."); }