public void ShootGun() { PlayerMissile miss = new PlayerMissile(mapa); Globals.playerMissiles.Add(miss); FlyingPlayerMissile missile = new FlyingPlayerMissile(miss, this.x, this.y); Thread t = new Thread(new ThreadStart(missile.ThreadProc)); t.Start(); }
// The constructor obtains the state information. public FlyingPlayerMissile(PlayerMissile missile, double xx, double yy) { x = xx; y = yy; this.missile = missile; }