SHARE
TWEET

Untitled

tinyevil Jan 1st, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void Foo(){
  2.     yield Sleep(100);
  3.     Rotate(15);
  4.     yield Sleep(100);
  5.     Rotate(15);
  6.     yield Sleep(100);
  7. }
  8.  
  9. void OnClick(){
  10.     RunCoroutine(Foo);
  11. }
  12.  
  13. void Update(){
  14.     if ( coroutine finished? ){
  15.         do something
  16.     }
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top