Shooting satellites works
This commit is contained in:
@@ -14,6 +14,7 @@ namespace EvilSatellites.Objects
|
||||
private ISoundEffect3D Sound;
|
||||
public Satellite(IScreen screen, Vector3 pos) : base(screen)
|
||||
{
|
||||
Type = ObjectType.Satellite;
|
||||
Sound = Screen.Manager.Sound.Load3D(@"sfx/satellite/1/loop.wav");
|
||||
Sound.Loop = true;
|
||||
Position = pos;
|
||||
@@ -26,6 +27,8 @@ namespace EvilSatellites.Objects
|
||||
public override void Activate()
|
||||
{
|
||||
Sound.Play();
|
||||
Active = true;
|
||||
ShouldDestroy = false;
|
||||
}
|
||||
public override void Destroy()
|
||||
{
|
||||
@@ -39,7 +42,7 @@ namespace EvilSatellites.Objects
|
||||
|
||||
public override void OnCollision(IGameObject obj)
|
||||
{
|
||||
Sound.Stop();
|
||||
// Sound.Stop();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user