标签:bug debug sharp log rdm upd public iss over
private IEnumerator WaitForShifting() { yield return new WaitUntil(() => !BoardManager.instance.IsShifting); yield return new WaitForSeconds(.25f); GameOver(); }
while (t <= time && !drop){ t += Time.deltaTime; yield return null; }
public class WaitUntilExample : MonoBehaviour { public int frame; void Start() { StartCoroutine(Example()); } IEnumerator Example() { Debug.Log("Waiting for princess to be rescued..."); yield return new WaitUntil(() => frame >= 10); Debug.Log("Princess was rescued!"); } void Update() { if (frame <= 10) { Debug.Log("Frame: " + frame); frame++; } } }
标签:bug debug sharp log rdm upd public iss over
原文地址:https://www.cnblogs.com/xiaomao21/p/9609702.html