Пример #1
0
    public override void Update(uint elapsed)
    {
        int day_seconds = ChallengeDefine.Rank_Rest_Time - (int)(TimeUtilities.GetNow() % (24 * 60 * 60 * 1000));

        if (day_seconds < 0)
        {
            day_seconds = 0;
        }
        mRankTimer.text = TimeUtilities.GetCountDownHMS(day_seconds);
        Player           player = PlayerController.Instance.GetControlObj() as Player;
        PlayerDataModule pdm    = ModuleManager.Instance.FindModule <PlayerDataModule>();

        if (player != null && !IsPreviewInit)
        {
            mCharacterPreview.SetupCharacter(player.ModelID, null, -1, 0);

            mCharacterPreview.ChangeWeapon(pdm.GetMainWeaponId());
            mCharacterPreview.RotationY = 180;
            IsPreviewInit = true;
        }

        if (IsPreviewInit)
        {
            mCharacterPreview.Update();
        }
    }
Пример #2
0
 public void Update()
 {
     if (this.gameObject.active)
     {
         mPreview.Update();
     }
 }
Пример #3
0
    public override void Update(uint elapsed)
    {
        base.Update(elapsed);
        if (isDirty)
        {
            RefreshListPanel();
        }

        mCharacterPreview.Update();
    }
Пример #4
0
    public override void Update(uint elapsed)
    {
        if (!mPreveiwSprite.gameObject.activeInHierarchy /*&& !mPreveiwSpriteStren.gameObject.activeInHierarchy*/)
        {
            mPreview.Enable = false;
        }
        else if (!mPreview.Enable)
        {
            mPreview.Enable = true;
        }

        mPreview.Update();
    }
Пример #5
0
    public override void Update(uint elapsed)
    {
        base.Update(elapsed);
        if (mIsDirty)
        {
            UpdateUI();
        }

        if (mCharacterPreview.Enable != mPreviewSprite.gameObject.activeInHierarchy)
        {
            mCharacterPreview.Enable = mPreviewSprite.gameObject.activeInHierarchy;
        }

        mCharacterPreview.Update();
    }
Пример #6
0
 public override void Update(uint elapsed)
 {
     mPreview.Update();
 }