コード例 #1
0
ファイル: ISelectable.cs プロジェクト: charredlot/square_grid
 public void ClearSelectable(USelectableMixin sel)
 {
     if (sel.g != null)
     {
         sel.cache.FreeGameObject(sel.g);
         sel.g = null;
     }
 }
コード例 #2
0
ファイル: ISelectable.cs プロジェクト: charredlot/square_grid
 private void ChangeCache(USelectableMixin selm)
 {
     this.ClearSelectable(selm);
     selm.cache = this;
     selm.g     = this.AllocGameObject(selm.selectable);
 }