Esempio n. 1
0
    public void SetFistInit()
    {
        mOneGroup.alpha   = 0;
        mTwoGroup.alpha   = 0;
        mThreeGroup.alpha = 0;
        mFourGroup.alpha  = 0;
        mFiveGroup.alpha  = 0;
        mSixGroup.alpha   = 0;
        mSevenGroup.alpha = 0;


        GO_One.SetActive(false);
        GO_Two.SetActive(false);
        GO_Three.SetActive(false);
        GO_Four.SetActive(false);
        GO_Five.SetActive(false);
        GO_Six.SetActive(false);
        GO_Seven.SetActive(false);


        switch (FirstShow)
        {
        case GroupState.ONE:
            mOneGroup.alpha = 1;
            GO_One.SetActive(true);
            break;

        case GroupState.TWO:
            mTwoGroup.alpha = 1;
            GO_Two.SetActive(true);
            break;

        case GroupState.THREE:
            mThreeGroup.alpha = 1;
            GO_Three.SetActive(true);
            break;

        case GroupState.FOUR:
            mFourGroup.alpha = 1;
            GO_Four.SetActive(true);
            break;

        case GroupState.Five:
            mFiveGroup.alpha = 1;
            GO_Five.SetActive(true);
            break;

        case GroupState.Six:
            mSixGroup.alpha = 1;
            GO_Six.SetActive(true);
            break;

        case GroupState.Seven:
            mSevenGroup.alpha = 1;
            GO_Seven.SetActive(true);
            break;
        }

        mCurrentState = FirstShow;
    }
Esempio n. 2
0
 public void Change2Four()                  // 切换成第 4 个
 {
     if (mCurrentState == GroupState.FOUR)
     {
         return;
     }
     ChangeState(GroupState.FOUR);
     GO_Four.SetActive(true);
     mFourGroup.DOFade(1, FadeDuration);
 }