标签:real info mgr 排名 += base code int anim
GAMEPLAY_END_OF_GAME_PLACE_1 第一名!!
GAMEPLAY_END_OF_GAME_PLACE_2 第二名!
GAMEPLAY_END_OF_GAME_PLACE_3 第三名!
GAMEPLAY_END_OF_GAME_PLACE_4 第四名!
GAMEPLAY_END_OF_GAME_PLACE_5 第五名
GAMEPLAY_END_OF_GAME_PLACE_6 第六名
GAMEPLAY_END_OF_GAME_PLACE_7 第七名
GAMEPLAY_END_OF_GAME_PLACE_8 第八名
// TB_BaconShop // Token: 0x06004278 RID: 17016 RVA: 0x00168EE4 File Offset: 0x001670E4 public override string GetVictoryScreenBannerText() { int realTimePlayerLeaderboardPlace = GameState.Get().GetFriendlySidePlayer().GetHero().GetRealTimePlayerLeaderboardPlace(); if (realTimePlayerLeaderboardPlace == 0) { return string.Empty; } return GameStrings.Get("GAMEPLAY_END_OF_GAME_PLACE_" + realTimePlayerLeaderboardPlace); }
// VictoryTwoScoop // Token: 0x0600217C RID: 8572 RVA: 0x000AC3B4 File Offset: 0x000AA5B4 protected void SetupBannerText() { string victoryScreenBannerText = GameState.Get().GetGameEntity().GetVictoryScreenBannerText(); base.SetBannerLabel(victoryScreenBannerText); }
下面这段代码,同时也负责显示了分数的变化
// BaconTwoScoop // Token: 0x0600208D RID: 8333 RVA: 0x000A78EC File Offset: 0x000A5AEC private IEnumerator ShowWhenReady() { this.m_Root.SetActive(false); this.m_heroActor.gameObject.SetActive(false); while (GameState.Get() == null || GameState.Get().GetGameEntity() == null) { yield return null; } TB_BaconShop baconGameEntity = null; if (GameState.Get().GetGameEntity() is TB_BaconShop) { baconGameEntity = (TB_BaconShop)GameState.Get().GetGameEntity(); } if (GameState.Get().GetBooleanGameOption(GameEntityOption.WAIT_FOR_RATING_INFO)) { while (baconGameEntity != null && baconGameEntity.RatingChangeData == null && this.m_waitForRatingTimeoutTimer < 5f) { this.m_waitForRatingTimeoutTimer += Time.unscaledDeltaTime; yield return null; } } this.m_Root.SetActive(true); this.m_heroActor.gameObject.SetActive(true); base.SetupHeroActor(); base.SetupBannerText(); this.SetupTwoScoopForPlace(); if (GameMgr.Get().IsSpectator() || baconGameEntity == null || baconGameEntity.RatingChangeData == null) { this.m_RatingBanner.SetActive(false); } else { this.m_newRating = baconGameEntity.RatingChangeData.NewRating; this.m_ratingChange = baconGameEntity.RatingChangeData.RatingChange; this.m_RatingBanner.SetActive(true); yield return this.PlayRatingChangeAnimation(); } yield break; }
标签:real info mgr 排名 += base code int anim
原文地址:https://www.cnblogs.com/chucklu/p/13581732.html