rise-and-swine/Assets/Scripts/Assembly-CSharp/TimeChallenge.cs
2023-02-25 23:04:03 -05:00

25 lines
426 B
C#

using UnityEngine;
public class TimeChallenge : Challenge
{
public override ChallengeType Type
{
get
{
return Challenge.ChallengeType.Time;
}
}
public override bool IsCompleted()
{
float num = Mathf.Floor(WPFMonoBehaviour.levelManager.CompletionTime * 100f) / 100f;
return num <= this.m_targetTime;
}
public override float TimeLimit()
{
return this.m_targetTime;
}
public float m_targetTime;
}