Example #1
0
 public void UpdateSkin(bool force = false)
 {
     if (force)
     {
         forceSkinRefresh = true;
     }
     if (!NeedsSkinChange())
     {
         return;
     }
     if (cachedStability <= 0f || base.isServer)
     {
         ChangeSkin();
         return;
     }
     if (!skinChange)
     {
         skinChange = new DeferredAction(this, ChangeSkin);
     }
     if (skinChange.Idle)
     {
         skinChange.Invoke();
     }
 }