Exemple #1
0
 protected void SetPreview(RankUpPreviewCell rankUpPreviewCell, Transform rankUpPreviewCellSlot, int theModelID)
 {
     if (rankUpPreviewCell != null && rankUpPreviewCell.get_gameObject() != null)
     {
         Object.Destroy(rankUpPreviewCell.get_gameObject());
     }
     rankUpPreviewCell = RankUpPreviewManager.Instance.GetPreview(rankUpPreviewCellSlot);
     rankUpPreviewCell.SetData(theModelID);
 }
 public void ReleasePreview(RankUpPreviewCell rankUpPreviewCell)
 {
     if (!rankUpPreviewCell)
     {
         return;
     }
     this.ReturnPoolID(rankUpPreviewCell.ModelIndex);
     rankUpPreviewCell.ResetModelData();
 }
 protected void SetPreview(int theModelID)
 {
     if (this.rankUpPreviewCell != null && this.rankUpPreviewCell.get_gameObject() != null)
     {
         Object.Destroy(this.rankUpPreviewCell.get_gameObject());
     }
     this.rankUpPreviewCell = RankUpPreviewManager.Instance.GetPreview(this.RankUpChangePreviewUISlot);
     this.rankUpPreviewCell.Bind(this);
     this.rankUpPreviewCell.SetData(theModelID);
 }