Timeline for Fade to first level, on click
Current License: CC BY-SA 3.0
2 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 26, 2016 at 12:19 | comment | added | DMGregory♦ |
"A coroutine must be started with the StartCoroutine(name) method" - there are two small caveats to this. One: you can do this without reflection looking up the name at runtime by using StartCoroutine(OnPointerClick()); (ie. passing the IEnumerator the method returns, rather than a delegate or name of the method). The second is that many of the messages MonoBehaviours can receive can be used directly as coroutines; eg. IEnumerator Start() or IEnumerator OnMouseDown() - Personally I prefer the style of explicitly calling StartCoroutine() but I thought I should point out the alternative.
|
|
| Apr 25, 2016 at 21:00 | history | answered | Philipp | CC BY-SA 3.0 |