示例#1
0
 public void RemoveAttackFromDb(IAttack attack)
 {
     if (attack.Shots.Count > 0)
     {
         attack.Shots.ForEach(s =>
         {
             myGameDbManager.RemoveShot(s);
         });
     }
     if (attack.Rebounds.Count > 0)
     {
         attack.Rebounds.ForEach(r =>
         {
             myGameDbManager.RemoveRebound(r);
         });
     }
     if (attack.Goal != null)
     {
         myGameDbManager.RemoveGoal(attack.Goal);
     }
     myGameDbManager.RemoveAttack(attack.DbAttack);
 }