Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void SomeMethod () {
- //someCode()
- StartCoroutine (FadeObject (currentObject));
- }
- IEnumerator FadeObject (Object myObject) {
- while (SomeFadingTest) {
- // SomeFadingCode()
- yield return null;
- }
- // Put object back in the pool code
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement