Advertisement
tinyevil

Untitled

Jan 1st, 2019
398
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement