public async void TestCallbackComponentAwait() { var simple = new SimpleCallbackComponent(); await simple.OpenAwait(); Debug.Log("1"); var simple2 = new SimpleCallbackComponent(); await simple2.OpenAwait(); Debug.Log("2"); var simple3 = new SimpleCallbackComponent(); await simple3.OpenAwait(); Debug.Log("3"); }
public void TestCallbackComponent() { var simple = new SimpleCallbackComponent(); simple.Open(() => { Debug.Log("1"); var simple2 = new SimpleCallbackComponent(); simple2.Open(() => { Debug.Log("2"); var simple3 = new SimpleCallbackComponent(); simple3.Open(() => { Debug.Log("3"); }); }); }); }