예제 #1
0
 public static void OnLaserShotCompleteSignal(LaserBeams aLaserBeam)
 {
     if (onLaserShotComplete != null)
     {
         onLaserShotComplete(aLaserBeam);
     }
 }
예제 #2
0
 public Spacecraft(float accelration, Vector2 position, Vector2 velocity, float rotation, float scale, float friction)
     : base(position, velocity, rotation, scale)
 {
     this.accelration = accelration;
     this.friction = friction;
     CurrentImageRect = new Rectangle(0, 0, 50, 70);
     laserBeams = new LaserBeams();
 }
예제 #3
0
 public void AddBeamToList(LaserBeams aLaserBeam)
 {
     laserBeams.Add(aLaserBeam);
 }