Last active
December 11, 2025 15:16
-
-
Save unitycoder/0a89f366983e457ab125904b301c3f4c to your computer and use it in GitHub Desktop.
Revisions
-
unitycoder revised this gist
Dec 11, 2025 . No changes.There are no files selected for viewing
-
unitycoder revised this gist
Dec 11, 2025 . 1 changed file with 15 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ IEnumerator Parent() { Debug.Log("Parent: before child"); yield return ChildCoroutine(); Debug.Log("Parent: after child"); } IEnumerator ChildCoroutine() { Debug.Log("Child: step 1"); yield return new WaitForSeconds(1f); Debug.Log("Child: step 2"); } -
unitycoder revised this gist
Dec 11, 2025 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ }); int myarg=1; StartCoroutine(DoSomething(myarg, (Bool success) => { if (success) { -
unitycoder renamed this gist
Dec 11, 2025 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
unitycoder created this gist
Dec 11, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,31 @@ // caller StartCoroutine(DoSomething((success) => { }); int myarg=1; StartCoroutine(Tools.ReadLocalImage(myarg, (Bool success) => { if (success) { Debug.Log("Success"); } else { Debug.Log("Failed"); } } })); // coroutine IEnumerator DoSomething(int arg, Action<bool> callback) { if (arg==0) { callback(false); } callback(true); }