Files
AppleHillsProduction/Assets/Scripts/Minigames/BirdPooper/Obstacle.cs

29 lines
769 B
C#
Raw Normal View History

2025-11-21 11:33:49 +01:00

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