ADd booster pack reward sequence to bird pooper

This commit is contained in:
Michal Pikulski
2025-12-19 16:41:05 +01:00
parent 2483603803
commit f19f87ce95
4 changed files with 103 additions and 14 deletions

View File

@@ -21,6 +21,7 @@ namespace Minigames.BirdPooper
protected IBirdPooperSettings settings;
protected float despawnXPosition;
protected bool isInitialized;
protected bool isPaused;
protected EdgeAnchor edgeAnchor;
/// <summary>
@@ -191,12 +192,33 @@ namespace Minigames.BirdPooper
protected virtual void Update()
{
if (!isInitialized || settings == null) return;
if (!isInitialized || settings == null || isPaused) return;
MoveLeft();
CheckBounds();
}
/// <summary>
/// Pause the scrolling movement of this entity.
/// </summary>
public void Pause()
{
isPaused = true;
}
/// <summary>
/// Resume the scrolling movement of this entity.
/// </summary>
public void Resume()
{
isPaused = false;
}
/// <summary>
/// Check if this entity is currently paused.
/// </summary>
public bool IsPaused => isPaused;
/// <summary>
/// Move entity left at constant speed (manual movement, no physics).
/// Override GetMoveSpeed() to customize speed per entity type.