Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.53 KB | None | 0 0
  1. IEnumerator UpdateState()
  2.     {
  3.         while (true)
  4.         {
  5.             yield return WaitForTarget();
  6.             yield return FollowTarget();
  7.             yield return DoFunAnimation();
  8.             yield return null;
  9.         }
  10.     }
  11.  
  12.     IEnumerator WaitForTarget()
  13.     {
  14.         yield break; //replace with actual logic
  15.     }
  16.  
  17.     IEnumerator FollowTarget()
  18.     {
  19.         yield break; //replace with actual logic
  20.     }
  21.  
  22.     IEnumerator DoFunAnimation()
  23.     {
  24.         yield break; //replace with actual logic
  25.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement