public static void Main() { //Garage<Vehicle> GreatGarage = new Garage<Vehicle>("Klas Garage", 50); //FillGarage(GreatGarage); List <Garage <Vehicle> > AllGarages = LoadAllGarages(); //List<Garage<Vehicle>> AllGarages = new List<Garage<Vehicle>>(); //AllGarages.Add(GreatGarage); GarageUI garageui = new GarageUI(AllGarages); Console.WindowWidth = 90; while (garageui.RunMenu()) { } /* * foreach (Vehicle fordon in GreatGarage) * { * Console.WriteLine(fordon); * } * Console.ReadLine(); * var query = from vehicle in GreatGarage * where vehicle.Type == "Car" * orderby vehicle.REG_NR * select vehicle; * foreach (Vehicle fordon in query) * { * Console.WriteLine(fordon); * }*/ }
public static void Main() { Garage garage = new Garage(); GarageUI ui = new GarageUI(garage); ui.GarageFunctions(); }
public void Exit(GameStateBase owner) { if (null != uiCtr) { GameObject.Destroy(uiCtr.gameObject); uiCtr = null; } }
public void Enter(GameStateBase owner) { CursorManager.SetCursor(CursorManager.CursorState.DEFAULT); // GameObject prefab = Resources.Load ("GarageScene")as GameObject; // GameObject go = GameObject.Instantiate (prefab); // uiCtr = go.GetComponent<GarageUI>(); ResourcesManager.Instance.Load("GarageScene", (Object asset) => { GameObject go = GameObject.Instantiate((GameObject)asset); uiCtr = go.GetComponent <GarageUI> (); }); }
public static void Main() { GarageUI.StartManage(); }
public static void Main() { GarageUI garageUI = new GarageUI(); garageUI.StartGarage(); }
private void Awake() { instance = this; }
public static void Main() { GarageUI ui = new GarageUI(); ui.RunApp(); }
public static void Main() { GarageUI GarageUI = new GarageUI(); }
public static void Main() { GarageUI.StartMenu(); }
public static void Main() { GarageUI garageUI = new GarageUI(); garageUI.Run(); }