public static void Main() { House myHouse; myHouse = new House(); myHouse.Start(); myHouse.Stop(); House yourHouse = new House(); yourHouse.make = "AAA"; yourHouse.model = "VVV"; yourHouse.color = "red"; yourHouse.yearBuilt = 2000; System.Console.WriteLine("yourHouse is a " + yourHouse.model); System.Console.WriteLine("Assigning yourHouse to myHouse"); myHouse = yourHouse; System.Console.WriteLine("myHouse details:"); System.Console.WriteLine("myHouse.make = " + myHouse.make); System.Console.WriteLine("myHouse.model = " + myHouse.model); System.Console.WriteLine("myHouse.color = " + myHouse.color); System.Console.WriteLine("myHouse.yearBuilt = " + myHouse.yearBuilt); }
public void Start(IPAddress aIpAddress) { iEventServer.Start(aIpAddress); iListenerNotify.Start(aIpAddress); iHouse.Start(aIpAddress); iHouse.Rescan(); }
private void _Generate(int currentHeigh, int sections) { if (currentHeigh < sections) { currentHeigh++; // Debug.Log(string.Format("Building level {0}", currentHeigh)); GameObject go = new GameObject(); go.name = name; go.transform.parent = transform; House h = go.AddComponent <House>(); h.foundation = this; h.Start(); h.Build(false); h._Generate(currentHeigh, sections); } }
public static void Main() { House myHouse; myHouse = new House(); myHouse.Start(); myHouse.Stop(); House yourHouse = new House(); yourHouse.make = "AQW"; yourHouse.model = "SSS"; yourHouse.color = "red"; yourHouse.yearBuilt = 2000; System.Console.WriteLine("yourHouse is a " + yourHouse.model); }