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 void Execute() { if (DateEntity == null) { return; } CheckPressedButtons(); totalTime -= Time.deltaTime; if (totalTime < 0 && isTimerRunning) { var playerCompany = Companies.GetPlayerCompany(gameContext); while (ScheduleUtils.IsLastDayOfPeriod(DateEntity) && Economy.IsWillBecomeBankruptOnNextPeriod(gameContext, playerCompany)) { var profit = Economy.GetProfit(gameContext, playerCompany, true); var profit2 = Economy.GetProfit(gameContext, playerCompany); var balance = Economy.BalanceOf(playerCompany); Debug.Log($"BANKRUPTCY THREAT for {playerCompany.company.Name}. Cash: {Format.Money(balance)}, Profit: {Format.Money(profit2)}\n\n{profit.ToString()}"); TutorialUtils.Unlock(gameContext, TutorialFunctionality.CanRaiseInvestments); TutorialUtils.Unlock(gameContext, TutorialFunctionality.BankruptcyWarning); NotificationUtils.AddPopup(gameContext, new PopupMessageBankruptcyThreat(playerCompany.company.Id)); ScheduleUtils.PauseGame(gameContext); return; } // ResetTimer(); totalTime = 1 / (float)currentSpeed; ScheduleUtils.IncreaseDate(gameContext, 1); } }
void Unlock(TutorialFunctionality tutorialFunctionality) { TutorialUtils.Unlock(Q, tutorialFunctionality); }
public override void Execute() { TutorialUtils.Unlock(Q, Text); }
public override void OnPointerClick(PointerEventData eventData) { TutorialUtils.Unlock(Q, TutorialFunctionality); }