예제 #1
0
 public override void Update()
 {
     base.Update();
     if (IsActive)
     {
         sprite.Rotation += -Game.DeltaTime;
         if (Position.X + Width / 2 < 0)
         {
             SpawnManager.Restore(this);
         }
     }
 }
예제 #2
0
 public override void OnDie()
 {
     base.OnDie();
     SpawnManager.Restore(this);
 }
예제 #3
0
 protected virtual void OnDetach()
 {
     attachedPlayer = null;
     SpawnManager.Restore(this);
 }