Files
AppleHillsProduction/Assets/Scripts/Minigames/BirdPooper/Obstacle.cs
2025-11-21 11:33:49 +01:00

29 lines
769 B
C#

namespace Minigames.BirdPooper
{
/// <summary>
/// Obstacle entity for Bird Pooper minigame.
/// Inherits scrolling, anchoring, and despawn behavior from ScrollingEntity.
/// Player dies on collision with obstacles.
/// </summary>
public class Obstacle : ScrollingEntity
{
/// <summary>
/// Returns obstacle move speed from settings.
/// </summary>
protected override float GetMoveSpeed()
{
return settings != null ? settings.ObstacleMoveSpeed : 5f;
}
/// <summary>
/// Returns "Obstacle" tag for collision detection.
/// </summary>
protected override string GetColliderTag()
{
return "Obstacle";
}
}
}