KEngine.KAsync.When C# (CSharp) Method

When() public method

等待条件成立
public When ( Func retBool, float timeout = 20 ) : KAsync
retBool Func
timeout float
return KAsync
        public KAsync When(Func<bool> retBool, float timeout = 20)
        {
            WaitNext((next) => { KAsyncManager.Instance.StartCoroutine(_CoWhen(retBool, timeout, next)); });
            return this;
        }