bad-piggies-0.1.3-porting/Assets/Scripts/Assembly-CSharp/TimeChallenge.cs

20 lines
310 B
C#
Raw Normal View History

2024-02-24 22:40:44 -05:00
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;
}
}