Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private string coroutine_Name = "FrogJump";
- void Start()
- {
- StartCoroutine(coroutine_Name);
- }
- IEnumerator FrogJump()
- {
- yield return new WaitForSeconds(Random.Range(1f, 4f));
- animation_Started = true;
- animation_Finished = false;
- if(jumpLeft)
- {
- anim.Play("FrogJumpLeft");
- }
- else
- {
- }
- StartCoroutine(coroutine_Name);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement