Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Foo(){
- yield Sleep(100);
- Rotate(15);
- yield Sleep(100);
- Rotate(15);
- yield Sleep(100);
- }
- void OnClick(){
- RunCoroutine(Foo);
- }
- void Update(){
- if ( coroutine finished? ){
- do something
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement