Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IEnumerator UpdateState()
- {
- while (true)
- {
- yield return WaitForTarget();
- yield return FollowTarget();
- yield return DoFunAnimation();
- yield return null;
- }
- }
- IEnumerator WaitForTarget()
- {
- yield break; //replace with actual logic
- }
- IEnumerator FollowTarget()
- {
- yield break; //replace with actual logic
- }
- IEnumerator DoFunAnimation()
- {
- yield break; //replace with actual logic
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement