public void Initialize()
 {
     list = new List <GameObject>();
     subm = new Submarine(10);
     dest = Destroyer.GetInstance(10, 10);
     dept = new DepthCharge(dest);
 }
 public void Initialize()
 {
     dest          = Destroyer.GetInstance(5, 5);
     sub           = new Submarine(10);//Initital Position X=20,Y=200~570
     list          = new List <GameObject>();
     dept          = new DepthCharge(dest);
     sub.PositionY = 170;
     list.Add(sub);
 }
 public void MoveDepthCharge()
 {
     for (int i = GameObjects.Count - 1; i >= 0; i--)
     {
         if (GameObjects[i] is DepthCharge)
         {
             DepthCharge dp = GameObjects[i] as DepthCharge;
             dp.WeaponsControll(GameObjects, myShip);
         }
     }
 }