public void OnOpenShop() { Mediator.Instance.SoundManager.PlaySound(SoundType.Click); ShopCategoryType targetCategory = _exceptionType == AlertType.Lack_Chips ? ShopCategoryType.Chips : ShopCategoryType.Energy; DataExchangeBetweenScenes.SetData(new ContainerData(ExchangeDataType.Shop_Category, targetCategory)); Mediator.Instance.PopupsManager.CreatePopup <LoadingPopup>().LoadingScene("Shop"); }
private void ConnectionStateHandler(bool connectionState) { if (connectionState) { return; } DataExchangeBetweenScenes.SetData(new ContainerData(ExchangeDataType.Show_Alert_Popup, AlertType.No_Internet)); Mediator.Instance.PopupsManager.CreatePopup <LoadingPopup>().LoadingScene("Modes"); }
public void OnOpenShop() { if (ScenesManager.GetActiveScene() == "Shop") { return; } Mediator.Instance.SoundManager.PlaySound(SoundType.Click); DataExchangeBetweenScenes.SetData(new ContainerData(ExchangeDataType.Shop_Category, _shopCategoryType)); Mediator.Instance.PopupsManager.CreatePopup <LoadingPopup>().LoadingScene("Shop"); }
private IEnumerator ActivityCheck() { yield return(new WaitForSeconds(_maxIdleTime)); yield return(new WaitUntil(() => GameplayManager.GameplayState == GameplayState.Started)); Mediator.Instance.PopupsManager.CreatePopup <AlertPopup>().Init(AlertType.AFK); yield return(new WaitForSeconds(10f)); yield return(new WaitUntil(() => GameplayManager.GameplayState == GameplayState.Started)); CollectFine(); DataExchangeBetweenScenes.SetData(new ContainerData(ExchangeDataType.Show_Alert_Popup, AlertType.Penalty)); Mediator.Instance.PopupsManager.CreatePopup <LoadingPopup>().LoadingScene("Modes"); }
public override void PlayAgain(bool isSetNewRate) { DataExchangeBetweenScenes.SetData(new ContainerData(ExchangeDataType.Open_Game_Mode, GameModeType.Throw_Online)); Mediator.Instance.PopupsManager.CreatePopup <LoadingPopup>().LoadingScene("Modes"); }