Exemple #1
0
 public override void Update(GachaUnitShard self)
 {
     if (!self.isRunningAnimator || !GameUtility.CompareAnimatorStateName((Component)self, "closed"))
     {
         return;
     }
     self.isRunningAnimator = false;
     self.mClicked          = false;
 }
Exemple #2
0
            public override void Begin(GachaUnitShard self)
            {
                Animator component = (Animator)((Component)self).GetComponent <Animator>();

                component.SetBool("is_skip", false);
                if (GameUtility.CompareAnimatorStateName((Component)self, "UnitShard_gauge_jobopen_loop"))
                {
                    return;
                }
                component.SetTrigger("jobopen_start");
            }
Exemple #3
0
    private void Update()
    {
        if (!this.IsTapSplash)
        {
            return;
        }
        Animator component = (Animator)((Component)this).GetComponent <Animator>();

        if (!Object.op_Inequality((Object)component, (Object)null) || !GameUtility.CompareAnimatorStateName((Component)component, "loop") || !Input.GetMouseButtonDown(0))
        {
            return;
        }
        component.SetBool("close", true);
    }
Exemple #4
0
 public override void Update(GachaUnitShard self)
 {
     if (!self.mClicked)
     {
         if (!GameUtility.IsAnimatorRunning((Component)self) || !GameUtility.CompareAnimatorStateName((Component)self, self.ShardGaugeStartAnim))
         {
             return;
         }
         self.mState.GotoState <GachaUnitShard.State_WaitGaugeActionStarted>();
     }
     else
     {
         self.mState.GotoState <GachaUnitShard.State_AddingGaugeSkip>();
     }
 }
Exemple #5
0
 public override void Update(GachaUnitShard self)
 {
     if (self.mClicked)
     {
         self.mState.GotoState <GachaUnitShard.State_EndUnitShard>();
     }
     else
     {
         if (!self.isRunningAnimator || !GameUtility.CompareAnimatorStateName((Component)self, "closed"))
         {
             return;
         }
         GameUtility.DestroyGameObjects(self.mRebirthStars);
         self.mRebirthStars.Clear();
         self.isRunningAnimator = false;
     }
 }
Exemple #6
0
 public override void Update(GachaUnitShard self)
 {
     if (GameUtility.IsAnimatorRunning((Component)self) || !GameUtility.CompareAnimatorStateName((Component)self, "UnitShard_gauge_jobopen_end"))
     {
         return;
     }
     ++self.mCurrentAwakeJobIndex;
     if (self.mJobAwakeLv != null && self.mJobAwakeLv.Count > self.mCurrentAwakeJobIndex && self.NowAwakeLv >= self.mJobAwakeLv[self.mCurrentAwakeJobIndex])
     {
         this.at.SetTrigger("job_next");
         self.mState.GotoState <GachaUnitShard.State_StartJobOpenAnimation>();
     }
     else
     {
         this.at.SetTrigger("jobopen_close");
         self.mState.GotoState <GachaUnitShard.State_CloseJobOpenAnimation>();
     }
 }
Exemple #7
0
            public override void Update(GachaUnitShard self)
            {
                if (!GameUtility.CompareAnimatorStateName((Component)self, "UnitShard_gauge_jobopen_start") && !GameUtility.CompareAnimatorStateName((Component)self, "UnitShard_gauge_jobopen_loop") || !self.mClicked)
                {
                    return;
                }
                self.mClicked = false;
                Animator component = (Animator)((Component)self).GetComponent <Animator>();

                ++self.mCurrentAwakeJobIndex;
                if (self.mJobAwakeLv != null && self.mJobAwakeLv.Count > self.mCurrentAwakeJobIndex && self.NowAwakeLv >= self.mJobAwakeLv[self.mCurrentAwakeJobIndex])
                {
                    component.SetTrigger("job_next");
                    self.mState.GotoState <GachaUnitShard.State_StartJobOpenAnimation>();
                }
                else
                {
                    component.SetTrigger("jobopen_end");
                    self.mState.GotoState <GachaUnitShard.State_CheckJobOpen>();
                }
            }
Exemple #8
0
 private void Update()
 {
     if (this.mListItems.Count <= 0)
     {
         return;
     }
     if (!((Component)this.CloseButton).get_gameObject().get_activeInHierarchy() && this.mListItems.Count <= 1 && (GameUtility.CompareAnimatorStateName((Component)this.mWindowAnimator, this.ItemOpendAnimation) && !this.mWindowAnimator.IsInTransition(0)))
     {
         ((Component)this.CloseButton).get_gameObject().SetActive(true);
     }
     else
     {
         if (!GameUtility.CompareAnimatorStateName((Component)this.mWindowAnimator, this.ItemEndAnimation) || this.mWindowAnimator.IsInTransition(0))
         {
             return;
         }
         this.mListItems[0].SetActive(false);
         this.mListItems.RemoveAt(0);
         this.mListItems[0].SetActive(true);
         GameUtility.SetAnimatorBool((Component)this.mWindowAnimator, this.ItemCloseFlag, false);
     }
 }
Exemple #9
0
        private void CheckIconAnimation()
        {
            if (this.m_IsClosed || this.m_IconObj == null || this.m_IconObj.Count <= 0)
            {
                return;
            }
            int num = 0;

            for (int index = 0; index < this.m_IconObj.Count; ++index)
            {
                GameObject go = this.m_IconObj[index];
                if (Object.op_Inequality((Object)go, (Object)null))
                {
                    num = !GameUtility.CompareAnimatorStateName(go, this.SkipToAnimState) ? num : num + 1;
                }
            }
            if (num != this.m_IconObj.Count)
            {
                return;
            }
            this.m_IsClosed = true;
        }
Exemple #10
0
    private void LateUpdate()
    {
        Animator component = (Animator)((Component)this).GetComponent <Animator>();

        if (!Object.op_Inequality((Object)component, (Object)null))
        {
            return;
        }
        if (this.IsTapSplash)
        {
            if (!GameUtility.CompareAnimatorStateName((Component)component, "close"))
            {
                return;
            }
            AnimatorStateInfo animatorStateInfo = component.GetCurrentAnimatorStateInfo(0);
            // ISSUE: explicit reference operation
            if ((double)((AnimatorStateInfo)@animatorStateInfo).get_normalizedTime() < 1.0)
            {
                return;
            }
            UIUtility.PopCanvas(true);
            GameUtility.DestroyGameObject((Component)((Component)this).GetComponentInParent <Canvas>());
        }
        else
        {
            if (!GameUtility.CompareAnimatorStateName((Component)component, "open"))
            {
                return;
            }
            AnimatorStateInfo animatorStateInfo = component.GetCurrentAnimatorStateInfo(0);
            // ISSUE: explicit reference operation
            if ((double)((AnimatorStateInfo)@animatorStateInfo).get_normalizedTime() < 1.0)
            {
                return;
            }
            GameUtility.SetGameObjectActive(((Component)this).get_gameObject(), false);
            GameUtility.DestroyGameObject(((Component)this).get_gameObject());
        }
    }
Exemple #11
0
    private void LateUpdate()
    {
        bool     flag       = false;
        Animator component1 = (Animator)((Component)this).GetComponent <Animator>();

        if (Object.op_Inequality((Object)component1, (Object)null) && GameUtility.CompareAnimatorStateName((Component)component1, this.keyname))
        {
            AnimatorStateInfo animatorStateInfo = component1.GetCurrentAnimatorStateInfo(0);
            // ISSUE: explicit reference operation
            if ((double)((AnimatorStateInfo)@animatorStateInfo).get_normalizedTime() >= 1.0)
            {
                flag = ((flag ? 1 : 0) | 1) != 0;
            }
        }
        CanvasGroup component2 = (CanvasGroup)((Component)this).GetComponent <CanvasGroup>();

        if (Object.op_Inequality((Object)component2, (Object)null))
        {
            flag |= (double)component2.get_alpha() <= 0.0;
        }
        if (flag)
        {
            if ((double)this.mCountDown <= 0.0)
            {
                ((Component)this).get_gameObject().SetActive(false);
            }
            else
            {
                this.mCountDown = Mathf.Max(this.mCountDown - Time.get_deltaTime(), 0.0f);
            }
        }
        else
        {
            this.mCountDown = 0.5f;
        }
    }
Exemple #12
0
 private void Refresh()
 {
     if (Object.op_Equality((Object)this.m_WindowAnim, (Object)null))
     {
         DebugUtility.LogError("Animator Not Found");
         this.m_IsRefresh = false;
     }
     else
     {
         if (!GameUtility.CompareAnimatorStateName((Component)this.m_WindowAnim, this.CheckAnimState))
         {
             return;
         }
         if (this.m_Rewards == null || this.m_Rewards.Count < 0)
         {
             DebugUtility.LogError("受け取り報酬が存在しません.");
         }
         else
         {
             for (int index = 0; index < this.m_Rewards.Count; ++index)
             {
                 FirstChargeReward reward     = this.m_Rewards[index];
                 GameObject        gameObject = (GameObject)null;
                 if (reward.CheckGiftTypes(GiftTypes.Item))
                 {
                     gameObject = this.SetItem(reward.iname, reward.num);
                     if (Object.op_Equality((Object)gameObject, (Object)null))
                     {
                         DebugUtility.LogError("[ChargeInfoResultWindow.cs]obj is null(Type:Item)!");
                         continue;
                     }
                 }
                 else if (reward.CheckGiftTypes(GiftTypes.Gold))
                 {
                     gameObject = this.SetGold(reward.num);
                     if (Object.op_Equality((Object)gameObject, (Object)null))
                     {
                         DebugUtility.LogError("[ChargeInfoResultWindow.cs]obj is null(Type:Gold)!");
                         continue;
                     }
                 }
                 else if (reward.CheckGiftTypes(GiftTypes.Coin))
                 {
                     gameObject = this.SetCoin(reward.num);
                     if (Object.op_Equality((Object)gameObject, (Object)null))
                     {
                         DebugUtility.LogError("[ChargeInfoResultWindow.cs]obj is null(Type:Coin)!");
                         continue;
                     }
                 }
                 else if (reward.CheckGiftTypes(GiftTypes.Unit))
                 {
                     gameObject = this.SetUnit(reward.iname);
                     if (Object.op_Equality((Object)gameObject, (Object)null))
                     {
                         DebugUtility.LogError("[ChargeInfoResultWindow.cs]obj is null(Type:Unit)!");
                         continue;
                     }
                 }
                 else if (reward.CheckGiftTypes(GiftTypes.Artifact))
                 {
                     gameObject = this.SetArtifact(reward.iname);
                     if (Object.op_Equality((Object)gameObject, (Object)null))
                     {
                         DebugUtility.LogError("[ChargeInfoResultWindow.cs]obj is null(Type:Artifact)!");
                         continue;
                     }
                 }
                 else if (reward.CheckGiftTypes(GiftTypes.ConceptCard))
                 {
                     gameObject = this.SetConceptCard(reward.iname);
                     if (Object.op_Equality((Object)gameObject, (Object)null))
                     {
                         DebugUtility.LogError("[ChargeInfoResultWindow.cs]obj is null(Type:ConceptCard)!");
                         continue;
                     }
                 }
                 if (Object.op_Inequality((Object)gameObject, (Object)null))
                 {
                     this.m_IconObj.Add(gameObject);
                 }
             }
             this.m_IsRefresh = false;
         }
     }
 }