public void Update()
        {
            if (this.AutoScroll && Object.op_Inequality((Object)this.ScrollCtrl, (Object)null) && this.ScrollCtrl.MovePos(this.AutoScrollGoal, this.ScrollSpd))
            {
                this.AutoScroll = false;
                if (Object.op_Inequality((Object)this.Scroll, (Object)null))
                {
                    this.Scroll.set_inertia(true);
                }
                FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "STOP_CURRENT_SCROLL");
            }
            if (!Object.op_Inequality((Object)this.ScrollCtrl, (Object)null) || !Object.op_Inequality((Object)this.playerInfo, (Object)null))
            {
                return;
            }
            bool flag = false;
            List <RectTransform> itemList = this.ScrollCtrl.ItemList;
            int versusTowerFloor          = MonoSingleton <GameManager> .Instance.Player.VersusTowerFloor;

            for (int index = 0; index < itemList.Count; ++index)
            {
                VersusTowerFloor component = (VersusTowerFloor)((Component)itemList[index]).get_gameObject().GetComponent <VersusTowerFloor>();
                if (Object.op_Inequality((Object)component, (Object)null) && component.Floor == versusTowerFloor)
                {
                    flag = true;
                    component.SetPlayerObject(this.playerInfo);
                    break;
                }
            }
            if (flag)
            {
                return;
            }
            this.playerInfo.SetActive(false);
        }
        private void Search()
        {
            GameManager instance1 = MonoSingleton <GameManager> .Instance;
            int         selectedMultiPlayRoomId = GlobalVars.SelectedMultiPlayRoomID;
            MyPhoton    instance2 = PunMonoSingleton <MyPhoton> .Instance;

            instance1.AudienceRoom = instance2.SearchRoom(selectedMultiPlayRoomId);
            if (instance1.AudienceRoom != null)
            {
                JSON_MyPhotonRoomParam myPhotonRoomParam = JSON_MyPhotonRoomParam.Parse(instance1.AudienceRoom.json);
                if (myPhotonRoomParam != null && myPhotonRoomParam.audience == 0)
                {
                    FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "AudienceDisable");
                }
                else if (instance1.AudienceRoom.battle)
                {
                    FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "AlreadyStartFriendMode");
                }
                else
                {
                    FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "FindRoom");
                }
            }
            else
            {
                FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "NotFindRoom");
            }
        }
        private void Refresh()
        {
            this.Reset();
            for (int index = 0; index < GachaResultData.drops.Length; ++index)
            {
                if (GachaResultData.drops[index].type == GachaDropData.Type.Unit)
                {
                    MonoSingleton <GameManager> .Instance.Player.UpdateUnitTrophyStates(false);

                    break;
                }
            }
            FlowNode_Variable.Set("GachaResultSingle", "0");
            if (GachaResultData.drops.Length == 1 && GachaResultData.drops[0].type == GachaDropData.Type.Unit)
            {
                if (!string.IsNullOrEmpty(FlowNode_Variable.Get("GachaResultCurrentDetail")))
                {
                    FlowNode_Variable.Set("GachaResultCurrentDetail", string.Empty);
                    FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "CLOSED_RESULT_SINGLE");
                }
                else
                {
                    FlowNode_Variable.Set("GachaResultSingle", "1");
                    this.OnSelectIcon(0, GachaResultThumbnailWindow.GachaResultType.Unit);
                }
            }
            else
            {
                this.RefreshThumbnail();
            }
        }
        public void OnClickNext()
        {
            if (this.mMode == MultiTowerReward.MODE.WAIT)
            {
                this.mWaitTime = this.WAIT_TIME;
                if (++this.mNow < this.mMax)
                {
                    this.mMode = MultiTowerReward.MODE.NEXT;
                    this.ReqAnim(this.nextAnim);
                }
                else
                {
                    this.CreateResult();
                    this.ReqAnim(this.resultAnim);
                    this.SetButtonText(false);
                    this.mMode = MultiTowerReward.MODE.FINISH;
                }
                MonoSingleton <MySound> .Instance.PlaySEOneShot(SoundSettings.Current.Tap, 0.0f);
            }
            else
            {
                if (this.mMode != MultiTowerReward.MODE.END)
                {
                    return;
                }
                MonoSingleton <MySound> .Instance.PlaySEOneShot(SoundSettings.Current.Tap, 0.0f);

                FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "Finish");
                this.mMode = MultiTowerReward.MODE.NONE;
            }
        }
        private void UpdateUnitStatus(int add, bool lerp = false)
        {
            this.m_SelectParty += add;
            if (this.m_SelectParty < 0)
            {
                this.m_SelectParty = this.m_Units.Count - 1;
            }
            else if (this.m_SelectParty >= this.m_Units.Count)
            {
                this.m_SelectParty = 0;
            }
            int selectParty = this.m_SelectParty;
            int hp          = (int)this.m_Units[selectParty].Unit.CurrentStatus.param.hp;

            this.m_Status.SetNoAction(this.m_Units[selectParty].Unit);
            this.m_Status.SetHpGaugeParam(EUnitSide.Player, hp, hp, 0, 0);
            this.m_Status.Open();
            this.m_Status.UpdateHpGauge();
            FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "TARGET_STATUS_BUTTON_SHOW");
            this.UpdateMarker(this.m_Units[selectParty]);
            if (lerp)
            {
                this.m_CameraNextPos   = this.m_CameraPos;
                this.m_CameraNextPos.x = ((Component)this.m_Units[selectParty]).get_transform().get_position().x;
                this.m_CameraNextPos.z = ((Component)this.m_Units[selectParty]).get_transform().get_position().z;
            }
            else
            {
                this.m_CameraPos.x   = ((Component)this.m_Units[selectParty]).get_transform().get_position().x;
                this.m_CameraPos.z   = ((Component)this.m_Units[selectParty]).get_transform().get_position().z;
                this.m_CameraNextPos = this.m_CameraPos;
            }
            this.UpdateCameraPosition();
        }
 private void OnCloseWindow(Button button)
 {
     if (!this.Initalized)
     {
         return;
     }
     FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "CLOSED_RESULT");
 }
 public override void OnActivate(int pinID)
 {
     if (pinID != 100 || string.IsNullOrEmpty(this.EventName))
     {
         return;
     }
     FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, this.EventName);
     this.ActivateOutputLinks(1);
 }
        private void Update()
        {
            this.mUpdateTime -= Time.get_deltaTime();
            if ((double)this.mUpdateTime > 0.0)
            {
                return;
            }
            GameManager instance1 = MonoSingleton <GameManager> .Instance;
            MyPhoton    instance2 = PunMonoSingleton <MyPhoton> .Instance;

            if (!Object.op_Inequality((Object)instance2, (Object)null) || instance1.AudienceRoom == null || instance1.AudienceRoom.battle)
            {
                return;
            }
            if (!instance2.IsConnected() && !instance1.AudienceRoom.battle)
            {
                FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "FORCE_LEAVE");
                instance1.AudienceRoom = (MyPhoton.MyRoom)null;
            }
            else
            {
                if (!instance2.IsRoomListUpdated)
                {
                    return;
                }
                JSON_MyPhotonRoomParam myPhotonRoomParam1 = JSON_MyPhotonRoomParam.Parse(instance1.AudienceRoom.json);
                if (myPhotonRoomParam1 != null)
                {
                    MyPhoton.MyRoom room = instance2.SearchRoom(myPhotonRoomParam1.roomid);
                    if (room != null)
                    {
                        if (!room.json.Equals(instance1.AudienceRoom.json))
                        {
                            this.Refresh(room);
                            JSON_MyPhotonRoomParam myPhotonRoomParam2 = JSON_MyPhotonRoomParam.Parse(room.json);
                            if (myPhotonRoomParam2 != null && myPhotonRoomParam2.audience == 0)
                            {
                                FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "AUDIENCE_DISABLE");
                                instance1.AudienceRoom = (MyPhoton.MyRoom)null;
                                return;
                            }
                        }
                        instance1.AudienceRoom = room;
                        if (room.battle)
                        {
                            FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "START_AUDIENCE");
                        }
                    }
                    else
                    {
                        FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "DISBANDED");
                    }
                }
                instance2.IsRoomListUpdated = false;
                this.mUpdateTime            = this.UPDATE_INTERVAL;
            }
        }
Exemple #9
0
 public void ForceClose(bool isHide = true)
 {
     if (isHide)
     {
         FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "TARGET_STATUS_BUTTON_HIDE");
     }
     this.CloseGimmickDescription();
     this.WindowController.ForceClose();
 }
Exemple #10
0
 private void ExitScene()
 {
     if (this.mSceneExiting)
     {
         return;
     }
     this.mSceneExiting = true;
     FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "EXIT");
 }
        private void OnClickDetail()
        {
            StringBuilder stringBuilder = new StringBuilder();

            stringBuilder.Append(Network.NewsHost);
            stringBuilder.Append(this.PVP_URL);
            FlowNode_Variable.Set("SHARED_WEBWINDOW_TITLE", LocalizedText.Get("sys.MULTI_VERSUS_TOWER_DETAIL"));
            FlowNode_Variable.Set("SHARED_WEBWINDOW_URL", stringBuilder.ToString());
            FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "TOWERMATCH_DETAIL");
        }
 public void OnClickRoomInfo()
 {
     MyPhoton.MyRoom dataOfClass = DataSource.FindDataOfClass <MyPhoton.MyRoom>(((Component)this).get_gameObject(), (MyPhoton.MyRoom)null);
     if (dataOfClass == null)
     {
         return;
     }
     MonoSingleton <GameManager> .Instance.AudienceRoom = dataOfClass;
     FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "COMFIRM_AUDIENCE");
 }
        protected override void OnItemSelect(GameObject go)
        {
            VersusMapParam dataOfClass = DataSource.FindDataOfClass <VersusMapParam>(go, (VersusMapParam)null);

            if (dataOfClass == null || !Object.op_Inequality((Object)this.SelectWindow, (Object)null))
            {
                return;
            }
            DataSource.Bind <QuestParam>(this.SelectWindow, dataOfClass.quest);
            FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "OPEN_SELECTWINDOW");
        }
        private void OnConfirm()
        {
            QuestParam dataOfClass = DataSource.FindDataOfClass <QuestParam>(this.SelectWindow, (QuestParam)null);

            if (dataOfClass != null)
            {
                GlobalVars.SelectedQuestID          = dataOfClass.iname;
                GlobalVars.EditMultiPlayRoomComment = GlobalVars.SelectedMultiPlayRoomComment;
                this.UpdateSelect();
            }
            FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "CLOSE_SELECT_WINDOW");
        }
Exemple #15
0
        public void CheckTrsutMaster()
        {
            if (this.mConceptCardData == null || (int)this.mConceptCardData.Trust < (int)MonoSingleton <GameManager> .Instance.MasterParam.FixParam.CardTrustMax || (this.mConceptCardData.TrustBonus || this.mConceptCardData.GetReward() == null))
            {
                return;
            }
            ConceptCardManager componentInParent = (ConceptCardManager)((Component)this).GetComponentInParent <ConceptCardManager>();

            if (!Object.op_Inequality((Object)componentInParent, (Object)null))
            {
                return;
            }
            FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)componentInParent, "TRUST_MASTER");
        }
Exemple #16
0
 public void OnClickMultiTowerRetry()
 {
     GlobalVars.CreateAutoMultiTower = true;
     UIUtility.ConfirmBoxTitle((string)null, LocalizedText.Get("sys.MULTI_TOWER_SAMEUSER"), (UIUtility.DialogResultEvent)(g =>
     {
         FlowNode_Variable.Set("MultiPlayPasscode", "1");
         GlobalVars.InvtationSameUser = true;
         FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "FINISH_RESULT");
     }), (UIUtility.DialogResultEvent)(g =>
     {
         FlowNode_Variable.Set("MultiPlayPasscode", "0");
         GlobalVars.InvtationSameUser = false;
         FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "FINISH_RESULT");
     }), (GameObject)null, false, -1, (string)null, (string)null);
 }
        private void Update()
        {
            if (this.mSelectIdx == ScrollClamped_TownMenu.MENU_ID.None || this.mIsSelected || (!UnityEngine.Object.op_Inequality((UnityEngine.Object) this.AutoFit, (UnityEngine.Object)null) || this.AutoFit.IsMove))
            {
                return;
            }
            string EventName = string.Empty;

            switch (this.mSelectIdx)
            {
            case ScrollClamped_TownMenu.MENU_ID.Story:
                EventName = "CLICK_STORY";
                break;

            case ScrollClamped_TownMenu.MENU_ID.Event:
                EventName = "CLICK_EVENT";
                GlobalVars.ReqEventPageListType = GlobalVars.EventQuestListType.EventQuest;
                break;

            case ScrollClamped_TownMenu.MENU_ID.Tower:
                EventName = "CLICK_TOWER";
                GlobalVars.ReqEventPageListType = GlobalVars.EventQuestListType.Tower;
                break;

            case ScrollClamped_TownMenu.MENU_ID.Chara:
                EventName = "CLICK_CHARA";
                break;

            case ScrollClamped_TownMenu.MENU_ID.Key:
                EventName = "CLICK_KEY";
                GlobalVars.ReqEventPageListType = GlobalVars.EventQuestListType.KeyQuest;
                break;

            case ScrollClamped_TownMenu.MENU_ID.Ordeal:
                EventName = "CLICK_ORDEAL";
                break;

            case ScrollClamped_TownMenu.MENU_ID.Multi:
                EventName = "CLICK_MULTI";
                break;
            }
            if (string.IsNullOrEmpty(EventName))
            {
                return;
            }
            FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, EventName);
            this.mIsSelected = true;
        }
 private void OnClickGo()
 {
     if (this.IsSamePosition())
     {
         FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "SAME_POSITION");
     }
     else
     {
         PlayerData player = MonoSingleton <GameManager> .Instance.Player;
         for (int index = 0; index < this.m_Units.Count; ++index)
         {
             player.SetVersusPlacement(PlayerData.VERSUS_ID_KEY + (object)index, this.GetPlacementID(this.m_Units[index].Unit.x, this.m_Units[index].Unit.y));
         }
         player.SavePlayerPrefs();
         FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "FINISH_PLACEMENT");
     }
 }
        private void OnClickScroll()
        {
            if (!Object.op_Inequality((Object)this.ScrollCtrl, (Object)null))
            {
                return;
            }
            int   num       = Mathf.Max(MonoSingleton <GameManager> .Instance.Player.VersusTowerFloor - this.ScrollMargin, 0);
            float itemScale = this.ScrollCtrl.ItemScale;

            this.AutoScrollGoal = Mathf.Min((float)-((double)num * (double)itemScale + (double)itemScale * 0.5), 0.0f);
            this.AutoScroll     = true;
            if (Object.op_Inequality((Object)this.Scroll, (Object)null))
            {
                this.Scroll.set_inertia(false);
            }
            FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "START_CURRENT_SCROLL");
        }
Exemple #20
0
        public void OnClickNextButton()
        {
            if (this.mUpdateAnim)
            {
                return;
            }
            VsTowerMatchEndParam towerMatchEndParam = MonoSingleton <GameManager> .Instance.GetVsTowerMatchEndParam();

            bool bNext = towerMatchEndParam != null && towerMatchEndParam.arravied == 1;

            switch (this.mState)
            {
            case VersusTowerKey.KEY_RESULT_STATE.GET_KEY:
                MonoSingleton <MySound> .Instance.PlaySEOneShot(SoundSettings.Current.Tap, 0.0f);

                if (this.mUpdateFloor)
                {
                    this.SetButtonText(bNext);
                    FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "UPDATE_FLOOR");
                    break;
                }
                FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "FINISH_KEY_RESULT");
                break;

            case VersusTowerKey.KEY_RESULT_STATE.UPDATE_FLOOR:
                MonoSingleton <MySound> .Instance.PlaySEOneShot(SoundSettings.Current.Tap, 0.0f);

                if (this.mBattleRes == VersusTowerKey.RESULT.WIN && bNext)
                {
                    FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "GET_REWARD");
                    break;
                }
                this.SetButtonText(false);
                FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "FINISH_KEY_RESULT");
                break;

            case VersusTowerKey.KEY_RESULT_STATE.GET_REWARD:
                MonoSingleton <MySound> .Instance.PlaySEOneShot(SoundSettings.Current.Tap, 0.0f);

                FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "FINISH_KEY_RESULT");
                break;
            }
        }
Exemple #21
0
        public void OnApplicationFocus(bool hasFocus)
        {
            MyPhoton instance = PunMonoSingleton <MyPhoton> .Instance;

            if (hasFocus)
            {
                if (!Object.op_Inequality((Object)instance, (Object)null) || !instance.IsDisconnected() || !GlobalVars.VersusRoomReuse)
                {
                    return;
                }
                FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "RECONNECT");
            }
            else
            {
                if (!GlobalVars.VersusRoomReuse || !instance.IsConnected())
                {
                    return;
                }
                FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "REUSE_ROOM");
            }
        }
 private void OnClickGo()
 {
     if (this.m_SyncLoad)
     {
         return;
     }
     if (this.IsSamePosition())
     {
         FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "SAME_POSITION");
     }
     else
     {
         this.m_Ready = false;
         PlayerData player = MonoSingleton <GameManager> .Instance.Player;
         VersusDraftList.VersusDraftPartyPlaces.Clear();
         for (int index = 0; index < this.m_Units.Count; ++index)
         {
             int placementId = this.GetPlacementID(this.m_Units[index].Unit.x, this.m_Units[index].Unit.y);
             if (!this.DraftMode)
             {
                 string key = PlayerPrefsUtility.VERSUS_ID_KEY + (object)index;
                 if (this.RankMatchMode)
                 {
                     key = PlayerPrefsUtility.RANKMATCH_ID_KEY + (object)index;
                 }
                 player.SetVersusPlacement(key, placementId);
             }
             else
             {
                 VersusDraftList.VersusDraftPartyPlaces.Add(placementId);
             }
         }
         if (!this.DraftMode)
         {
             player.SavePlayerPrefs();
         }
         FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "FINISH_PLACEMENT");
     }
 }
        private void Search()
        {
            GameManager instance1 = MonoSingleton <GameManager> .Instance;
            int         selectedMultiPlayRoomId = GlobalVars.SelectedMultiPlayRoomID;
            MyPhoton    instance2 = PunMonoSingleton <MyPhoton> .Instance;

            instance1.AudienceRoom = instance2.SearchRoom(selectedMultiPlayRoomId);
            if (instance1.AudienceRoom != null)
            {
                if (instance1.AudienceRoom.start)
                {
                    FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "AlreadyStartFriendMode");
                }
                else
                {
                    FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "FindRoom");
                }
            }
            else
            {
                FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "NotFindRoom");
            }
        }
Exemple #24
0
        private void ShowDetailWindow(ListItemEvents item)
        {
            ItemData dataOfClass = DataSource.FindDataOfClass <ItemData>(((Component)item).get_gameObject(), (ItemData)null);

            if (dataOfClass == null)
            {
                return;
            }
            string empty = string.Empty;
            string EventName;

            if (string.IsNullOrEmpty(dataOfClass.Param.Flavor))
            {
                DataSource.Bind <ItemData>(this.PieceInfo, dataOfClass);
                GameParameter.UpdateAll(this.PieceInfo);
                EventName = "OPEN_PIECE_DETAIL";
                CanvasGroup component = (CanvasGroup)this.PieceBg.GetComponent <CanvasGroup>();
                if (Object.op_Inequality((Object)component, (Object)null))
                {
                    component.set_interactable(true);
                    component.set_blocksRaycasts(true);
                }
            }
            else
            {
                DataSource.Bind <ItemData>(this.ItemInfo, dataOfClass);
                GameParameter.UpdateAll(this.ItemInfo);
                EventName = "OPEN_ITEM_DETAIL";
                CanvasGroup component = (CanvasGroup)this.ItemBg.GetComponent <CanvasGroup>();
                if (Object.op_Inequality((Object)component, (Object)null))
                {
                    component.set_interactable(true);
                    component.set_blocksRaycasts(true);
                }
            }
            FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, EventName);
        }
Exemple #25
0
        public void OnDetailClick()
        {
            GameManager      instance    = MonoSingleton <GameManager> .Instance;
            VersusTowerParam dataOfClass = DataSource.FindDataOfClass <VersusTowerParam>(((Component)this).get_gameObject(), (VersusTowerParam)null);

            if (dataOfClass == null)
            {
                return;
            }
            VERSUS_ITEM_TYPE versusItemType = VERSUS_ITEM_TYPE.item;
            string           key            = string.Empty;
            int num = 0;

            if (this.mType == VersusTowerRewardItem.REWARD_TYPE.Arrival)
            {
                versusItemType = dataOfClass.ArrivalItemType;
                key            = (string)dataOfClass.ArrivalIteminame;
            }
            else if (this.mSeasonIdx >= 0 && this.mSeasonIdx < dataOfClass.SeasonIteminame.Length)
            {
                versusItemType = dataOfClass.SeasonItemType[this.mSeasonIdx];
                key            = (string)dataOfClass.SeasonIteminame[this.mSeasonIdx];
                num            = (int)dataOfClass.SeasonItemnum[this.mSeasonIdx];
            }
            string str1 = string.Empty;
            string str2 = string.Empty;

            switch (versusItemType)
            {
            case VERSUS_ITEM_TYPE.item:
                ItemParam itemParam = instance.GetItemParam(key);
                if (itemParam != null)
                {
                    str1 = itemParam.name;
                    str2 = itemParam.Expr;
                    break;
                }
                break;

            case VERSUS_ITEM_TYPE.gold:
                str1 = LocalizedText.Get("sys.GOLD");
                str2 = num.ToString() + LocalizedText.Get("sys.GOLD");
                break;

            case VERSUS_ITEM_TYPE.coin:
                str1 = LocalizedText.Get("sys.COIN");
                str2 = string.Format(LocalizedText.Get("sys.CHALLENGE_REWARD_COIN"), (object)num);
                break;

            case VERSUS_ITEM_TYPE.unit:
                str1 = string.Format(LocalizedText.Get("sys.MULTI_VERSUS_REWARD_UNIT"), (object)instance.GetUnitParam(key).name);
                break;

            case VERSUS_ITEM_TYPE.artifact:
                ArtifactParam artifactParam = instance.MasterParam.GetArtifactParam(key);
                if (artifactParam != null)
                {
                    str1 = string.Format(LocalizedText.Get("sys.MULTI_VERSUS_REWARD_ARTIFACT"), (object)artifactParam.name);
                    str2 = artifactParam.Expr;
                    break;
                }
                break;

            case VERSUS_ITEM_TYPE.award:
                AwardParam awardParam = instance.GetAwardParam(key);
                if (awardParam != null)
                {
                    str1 = awardParam.name;
                    str2 = awardParam.expr;
                    break;
                }
                break;
            }
            if (Object.op_Inequality((Object)this.rewardDetailName, (Object)null))
            {
                this.rewardDetailName.set_text(str1);
            }
            if (Object.op_Inequality((Object)this.rewardDetailInfo, (Object)null))
            {
                this.rewardDetailInfo.set_text(str2);
            }
            if (Object.op_Inequality((Object)this.pos, (Object)null))
            {
                ((Transform)this.pos).set_position(((Component)this).get_gameObject().get_transform().get_position());
            }
            FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "OPEN_DETAIL");
        }
Exemple #26
0
 public void OnSupportSelectStart()
 {
     FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, this.PlayAgain);
 }
Exemple #27
0
 public void OnClickAll()
 {
     GlobalVars.SelectedMultiPlayArea = string.Empty;
     GlobalVars.SelectedQuestID       = string.Empty;
     FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "SELECT_ALL_ROOM");
 }
Exemple #28
0
 private void CreateSkipCanvas()
 {
     this.canvasCreating = true;
     FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "CREATE_SKIP_CANVAS");
 }
Exemple #29
0
 private void DestroySkipCanvas()
 {
     FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "DESTROY_SKIP_CANVAS");
 }
Exemple #30
0
 private void DisableSkipButton()
 {
     FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)this, "DISABLE_SKIP");
 }