Пример #1
0
        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);
             * }*/
        }
Пример #2
0
        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> ();
        });
    }
Пример #5
0
 public static void Main()
 {
     GarageUI.StartManage();
 }
Пример #6
0
        public static void Main()
        {
            GarageUI garageUI = new GarageUI();

            garageUI.StartGarage();
        }
Пример #7
0
 private void Awake()
 {
     instance = this;
 }
Пример #8
0
        public static void Main()
        {
            GarageUI ui = new GarageUI();

            ui.RunApp();
        }
Пример #9
0
 public static void Main()
 {
     GarageUI GarageUI = new GarageUI();
 }
Пример #10
0
 public static void Main()
 {
     GarageUI.StartMenu();
 }
Пример #11
0
        public static void Main()
        {
            GarageUI garageUI = new GarageUI();

            garageUI.Run();
        }