예제 #1
0
 /// <summary>
 /// After you instantiate me, but before you let me fly, you can set up the properties of how I will explode.
 /// </summary>
 public void SetExplosion(double radius, double duration, double force)
 {
     _explosion             = new ExplosionProps();
     _explosion.ElapsedTime = 0;
     _explosion.Duration    = duration;
     _explosion.Radius      = radius;
     _explosion.Force       = force;
 }
예제 #2
0
 /// <summary>
 /// After you instantiate me, but before you let me fly, you can set up the properties of how I will explode.
 /// </summary>
 public void SetExplosion(double radius, double duration, double force)
 {
     _explosion = new ExplosionProps();
     _explosion.ElapsedTime = 0;
     _explosion.Duration = duration;
     _explosion.Radius = radius;
     _explosion.Force = force;
 }