ADd booster pack reward sequence to bird pooper
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user