IEnumerator _executeOnTimer() { //Debug.Log( "wait time " + t + " " + mevent ); yield return(new WaitForSeconds(waitTime)); behavior(); MEventMaster.notifyDestruct(); }
public override void execute() { if (waitTime > 0.0f) { GM.startCoroutine(_executeOnTimer()); } else { behavior(); MEventMaster.notifyDestruct(); } }