예제 #1
0
    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");
    }
예제 #2
0
    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");
    }
예제 #3
0
    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");
    }
예제 #4
0
    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");
    }
예제 #5
0
 public override void PlayAgain(bool isSetNewRate)
 {
     DataExchangeBetweenScenes.SetData(new ContainerData(ExchangeDataType.Open_Game_Mode, GameModeType.Throw_Online));
     Mediator.Instance.PopupsManager.CreatePopup <LoadingPopup>().LoadingScene("Modes");
 }