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(); } }
public void Update() { if (this.gameObject.active) { mPreview.Update(); } }
public override void Update(uint elapsed) { base.Update(elapsed); if (isDirty) { RefreshListPanel(); } mCharacterPreview.Update(); }
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(); }
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(); }
public override void Update(uint elapsed) { mPreview.Update(); }