コード例 #1
0
        public static void SpawnShip()
        {

            if (Ship == null)
            {
                Ship = new PlayerShip(Config.CurrentShipTop);
                enemySpawnTimer.Fire += new NotifyHandler(enemySpawnTimer_Fire);
            }
            

            //if (Ship2 == null)
            //    Ship2 = new PlayerShip(Config.CurrentShipTop);

            //if (Players[(int)playerIndex].Ship == null)
            //    Players[(int)playerIndex].Ship = new PlayerShip(Config.ShipSpriteSheet);
        }
コード例 #2
0
 public static void RemoveShip(PlayerShip ship)
 {
     if (Ship == ship)
     {
         Ship = null;
     }
     //for (int i = 0; i < Players.Length; i++)
     //    if (Players[i].Ship == ship)
     //        Players[i].Ship = null;
 }