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));
        }
Exemple #2
0
        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);
        }
Exemple #3
0
 public static void OnOfficialTransfer(TransferCashInfo info)
 => OfficialTransfer?.Invoke(info);
Exemple #4
0
 public void OnOfficialTransfer(TransferCashInfo info)
 {
     UpdateState();
 }
Exemple #5
0
 private void OnOfficialTransfer(TransferCashInfo info)
 {
     ProductNotifier.OnOfficialTransfer(info);
 }
Exemple #6
0
 public void FinishTransferCashOfficially(TransferCashInfo transferInfo)
 {
     RemoveCompanyCash(transferInfo.InputValue);
     AddPlayerCash(transferInfo.RemainValue.ToCurrencyNumber());
     GameEvents.OnTutorialEvent(new TutorialEventData(TutorialEventName.LegalTransferCompleted, transferInfo));
 }