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