Ejemplo n.º 1
0
 private void Awake()
 {
     s_Instance = this;
     this.m_addRewardsToCacheValues = !Login.IsLoginSceneActive();
     this.m_InstancedObjects        = new List <GameObject>();
     this.m_doneCallbacks           = new List <System.Action>();
     CollectionManager.Get().RegisterAchievesCompletedListener(new CollectionManager.DelOnAchievesCompleted(this.OnCollectionAchievesCompleted));
     RenderUtils.SetAlpha(this.m_ClickCatcher, 0f);
 }
Ejemplo n.º 2
0
 private void CleanUp()
 {
     foreach (GameObject obj2 in this.m_InstancedObjects)
     {
         if (obj2 != null)
         {
             UnityEngine.Object.Destroy(obj2);
         }
     }
     this.FadeFullscreenEffectsOut();
     s_Instance = null;
 }
 private void OpenRewards()
 {
     AssetLoader.GameObjectCallback callback = delegate(string name, GameObject go, object callbackData) {
         if (SoundManager.Get() != null)
         {
             SoundManager.Get().LoadAndPlay("card_turn_over_legendary");
         }
         RewardBoxesDisplay component = go.GetComponent <RewardBoxesDisplay>();
         component.SetRewards(this.m_seasonEndInfo.m_rankedRewards);
         component.m_playBoxFlyoutSound = false;
         component.SetLayer(GameLayer.PerspectiveUI);
         component.UseDarkeningClickCatcher(true);
         component.RegisterDoneCallback(() => this.m_rewardChest.GetComponent <PlayMakerFSM>().SendEvent("SummonOut"));
         component.transform.localPosition = this.m_rewardBoxesBone.transform.localPosition;
         component.transform.localRotation = this.m_rewardBoxesBone.transform.localRotation;
         component.transform.localScale    = this.m_rewardBoxesBone.transform.localScale;
         component.AnimateRewards();
     };
     AssetLoader.Get().LoadGameObject("RewardBoxes", callback, null, false);
     iTween.FadeTo(this.m_rewardChestInstructions.gameObject, 0f, 0.5f);
 }
Ejemplo n.º 4
0
 private void OpenReward()
 {
     base.GetComponent <PlayMakerFSM>().SendEvent("Death");
     RewardBoxesDisplay.Get().OpenReward(this.m_RewardIndex, base.transform.position);
     base.enabled = false;
 }