You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PlumberUltimateAds/Assets/Scripts/LeanTester.cs

41 lines
812 B
C#

4 weeks ago
/*
http://www.cgsoso.com/forum-211-1.html
CG Unity3d Unity3d VIP
CGSOSO CG
daily assets update for try.
U should buy the asset from home store if u use it in your project!
*/
using System.Collections;
using UnityEngine;
public class LeanTester : MonoBehaviour
{
public float timeout = 15f;
public void Start()
{
StartCoroutine(timeoutCheck());
}
private IEnumerator timeoutCheck()
{
float pauseEndTime = Time.realtimeSinceStartup + timeout;
while (Time.realtimeSinceStartup < pauseEndTime)
{
yield return 0;
}
if (!LeanTest.testsFinished)
{
UnityEngine.Debug.Log(LeanTest.formatB("Tests timed out!"));
LeanTest.overview();
}
}
}