Beispiel #1
0
    void Update()
    {
        #if UNITY_EDITOR
        if (Input.GetKeyDown(KeyCode.F8))
        {
            Companies.AddResources(MyCompany, 1000000000, "CHEATS");
            Refresh();
        }

        if (Input.GetKeyDown(KeyCode.W))
        {
            //foreach (var e in (TutorialFunctionality[])System.Enum.GetValues(typeof(TutorialFunctionality)))
            TutorialUtils.Unlock(Q, TutorialFunctionality.UnlockAll);
        }


        if (Input.GetKeyDown(KeyCode.F6))
        {
            Companies.CreateProductAndAttachItToGroup(Q, NicheType.Com_Blogs, MyCompany);
            Refresh();
        }
        #endif

        //if (Input.GetKeyDown(KeyCode.F9))
        //{
        //    Companies.CreateProductAndAttachItToGroup(Q, NicheType.ECom_BookingTours, MyCompany);
        //    Companies.CreateProductAndAttachItToGroup(Q, NicheType.ECom_BookingHotels, MyCompany);
        //    Companies.CreateProductAndAttachItToGroup(Q, NicheType.ECom_PaymentSystem, MyCompany);
        //}
    }
    public override void Execute()
    {
        NicheType nicheType = Popup.NicheType;

        var id = Companies.CreateProductAndAttachItToGroup(Q, nicheType, MyCompany);

        NotificationUtils.ClosePopup(Q);
        NotificationUtils.AddPopup(Q, new PopupMessageCreateApp(id));
    }
Beispiel #3
0
    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.F8))
        {
            Economy.IncreaseCompanyBalance(Q, MyCompany.company.Id, 1000000000);
            RefreshPage();
        }

        if (Input.GetKeyDown(KeyCode.F9))
        {
            Companies.CreateProductAndAttachItToGroup(Q, NicheType.ECom_BookingTours, MyCompany);
            Companies.CreateProductAndAttachItToGroup(Q, NicheType.ECom_BookingHotels, MyCompany);
            Companies.CreateProductAndAttachItToGroup(Q, NicheType.ECom_PaymentSystem, MyCompany);
        }
    }
Beispiel #4
0
    public override void Execute()
    {
        if (Popup == null)
        {
            return;
        }

        NicheType nicheType = Popup.NicheType;

        var company = Companies.CreateProductAndAttachItToGroup(Q, nicheType, MyCompany);
        var id      = company.company.Id;

        NotificationUtils.ClosePopup(Q);
        NotificationUtils.AddPopup(Q, new PopupMessageCreateApp(id));

        // had no products before
        if (Companies.GetDaughtersAmount(MyCompany) == 1)
        {
            Companies.TurnProductToPlayerFlagship(company, Q, nicheType, MyCompany);

            Navigate(ScreenMode.HoldingScreen, C.MENU_SELECTED_NICHE, company.product.Niche);
        }
    }
 void CreateCompanyOnMarket(NicheType n, GameEntity managingCompany)
 {
     Companies.CreateProductAndAttachItToGroup(gameContext, n, managingCompany);
 }