public void Setup(TransferCashInfo transferInfo) { cashInfo = transferInfo; slotText.Deactivate(); animationObject.Activate(); winViewObject.Deactivate(); ManagerKickbackScreenInfo screenInfo = null; KickbackManagerSpritePositionInfo managerSpriteInfo = null; ManagerSlotUtil.SelectSpritePositionInfo(screens, Services.PlanetService.CurrentPlanet.Id, UnityEngine.Random.Range(0, 10), out screenInfo, out managerSpriteInfo); if (screenInfo != null) { background.overrideSprite = screenInfo.backSprite; rollSprite.overrideSprite = screenInfo.rollSprite; } if (managerSpriteInfo != null) { managerIconImage.overrideSprite = managerSpriteInfo.managerSprite; managerIconImage.GetComponent <RectTransform>().anchoredPosition = managerSpriteInfo.managerPosition; } StartCoroutine(InternalPull()); GetComponent <AudioSource>().Play(); ScaleTitle(); continueButton.SetListener(() => SceneManager.UnloadSceneAsync(7)); }
public TransferCashInfo StartTransferCashOfficially() { TransferCashInfo info = new TransferCashInfo(); double value = CompanyCash.Value; info.TransferOfficially(value, Services.ResourceService.PersonalImprovements.ConvertData.OfficialConvertPercent); FinishTransferCashOfficially(info); GameEvents.OnOfficialTransfer(info); return(info); }
public static void OnOfficialTransfer(TransferCashInfo info) => OfficialTransfer?.Invoke(info);
public void OnOfficialTransfer(TransferCashInfo info) { UpdateState(); }
private void OnOfficialTransfer(TransferCashInfo info) { ProductNotifier.OnOfficialTransfer(info); }
public void FinishTransferCashOfficially(TransferCashInfo transferInfo) { RemoveCompanyCash(transferInfo.InputValue); AddPlayerCash(transferInfo.RemainValue.ToCurrencyNumber()); GameEvents.OnTutorialEvent(new TutorialEventData(TutorialEventName.LegalTransferCompleted, transferInfo)); }