bad-piggies-0.1.3-porting/Assets/Scripts/Assembly-CSharp/TimeChallenge.cs
2024-02-24 22:40:44 -05:00

19 lines
310 B
C#

public class TimeChallenge : Challenge
{
public float m_targetTime;
public override bool IsCompleted()
{
return WPFMonoBehaviour.levelManager.CompletionTime <= m_targetTime;
}
public override float TimeLimit()
{
return m_targetTime;
}
private void Awake()
{
m_type = ChallengeType.Time;
}
}