コード例 #1
0
ファイル: PlayerAILogics.cs プロジェクト: imanshu15/x-sms
 public void Dispose()
 {
     if (playerService != null)
     {
         playerService.Dispose();
         playerService = null;
     }
     if (aiEntities != null)
     {
         aiEntities.Dispose();
         aiEntities = null;
     }
     if (shouldSell != null)
     {
         shouldSell = null;
     }
     if (shouldBuy != null)
     {
         shouldBuy = null;
     }
     if (curGame != null)
     {
         curGame = null;
     }
     if (list != null)
     {
         list = null;
     }
 }
コード例 #2
0
 public void Dispose()
 {
     if (playerEntities != null)
     {
         playerEntities.Dispose();
         playerEntities = null;
     }
 }
コード例 #3
0
ファイル: HistoryService.cs プロジェクト: imanshu15/x-sms
 public void Dispose()
 {
     if (gameEntities != null)
     {
         gameEntities.Dispose();
         gameEntities = null;
     }
 }