private void Awake()
 {
     s_instance         = this;
     this.m_fakeCards   = new List <Actor>();
     this.m_creditsDefs = new List <FullDef>();
     this.creditsRootStartLocalPosition  = this.m_creditsRoot.transform.localPosition;
     this.creditsText1StartLocalPosition = this.m_creditsText1.transform.localPosition;
     this.creditsText2StartLocalPosition = this.m_creditsText2.transform.localPosition;
     this.m_doneButton.SetText(GameStrings.Get("GLOBAL_BACK"));
     this.m_doneButton.AddEventListener(UIEventType.RELEASE, new UIEvent.Handler(this.OnDonePressed));
     this.m_yearButton.SetText(!this.m_displayingLatestYear ? "2015" : "2014");
     this.m_yearButton.AddEventListener(UIEventType.RELEASE, new UIEvent.Handler(this.OnYearPressed));
     if (UniversalInputManager.UsePhoneUI != null)
     {
         Box.Get().m_tableTop.SetActive(false);
         Box.Get().m_letterboxingContainer.SetActive(false);
         this.m_doneButton.SetText(string.Empty);
         this.m_doneArrowInButton.SetActive(true);
     }
     AssetLoader.Get().LoadActor("Card_Hand_Ally", new AssetLoader.GameObjectCallback(this.ActorLoadedCallback), null, false);
     AssetLoader.Get().LoadActor("Card_Hand_Ally", new AssetLoader.GameObjectCallback(this.ActorLoadedCallback), null, false);
     this.LoadAllCreditsCards();
     this.LoadCreditsText();
     Navigation.Push(new Navigation.NavigateBackHandler(this.EndCredits));
 }
Ejemplo n.º 2
0
 public override void Unload()
 {
     this.m_unloading = true;
     CreditsDisplay.Get().Unload();
     if (InactivePlayerKicker.Get() != null)
     {
         InactivePlayerKicker.Get().SetShouldCheckForInactivity(true);
     }
     this.m_unloading = false;
 }
Ejemplo n.º 3
0
 void Start() {
     CreditsDisplay creditDisplayer = FindObjectOfType<CreditsDisplay>();
     creditDisplayer.AddCredit(coinWorth);
     coinText.text = "+" + coinWorth.ToString();
     creditDisplayer.UpdateCreditDisplay();
 }
Ejemplo n.º 4
0
 public void UpdateCreditDisplay(CreditsDisplay creditsDisplay)
 {
     creditsDisplay.GetComponent <Text>().text = PlayerData.GetCredits().ToString();
 }