Ejemplo n.º 1
0
 protected override void Update()
 {
     if (!string.IsNullOrEmpty(Message) && indicator.text.text != Message)
     {
         if (indicator.gameObject.activeSelf)
         {
             indicator.UpdateMessage(Message);
         }
         else
         {
             indicator.Show(Message);
         }
     }
 }
Ejemplo n.º 2
0
        private IEnumerator ShowSequence(string worldName, int stageId, bool isNext, int clearedStageId)
        {
            indicator.Close();
            dialogEnd = true;
            if (isNext)
            {
                yield return(CoDialog(clearedStageId));
            }

            var message = string.Format(L10nManager.Localize("STAGE_BLOCK_CHAIN_MINING_TX"),
                                        worldName,
                                        StageInformation.GetStageIdString(stageId));

            indicator.Show(message);

            if (States.Instance.CurrentAvatarState.worldInformation
                .TryGetUnlockedWorldByStageClearedBlockIndex(out var world) &&
                world.StageClearedId >= GameConfig.RequireClearedStageLevel.UIBottomMenuInBattle)
            {
                WidgetHandler.Instance.Battle.ShowBottomMenu(world, false);
            }
        }
Ejemplo n.º 3
0
 protected void ShowLoadingDialog(string title)
 {
     loadingIndicator = LoadingIndicator.GetInstance(title);
     loadingIndicator.Show(SupportFragmentManager, "dialog");
 }