Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IEnumerator EncounterAdd()
- {
- yield return new WaitForSeconds(1);
- MoveX = Input.GetAxis("Horizontal");
- if (MoveX != 0)
- Encounter = Encounter + (Random.Range(1, 5));
- else
- StartCoroutine(EncounterAdd());
- if (Encounter >= 100)
- Application.LoadLevel(1);
- else StartCoroutine(EncounterAdd());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement