Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void Start()
- {
- StartCoroutine(FirstRoutine());
- }
- IEnumerator FirstRoutine()
- {
- yield return null;
- print("Пропущен кадр");
- yield return new WaitForSeconds(1);
- print("Прошла секунда");
- yield return StartCoroutine(SecondRoutine());
- print("Прошло две секунды");
- }
- IEnumerator SecondRoutine()
- {
- yield return new WaitForSeconds(2);
- }
Add Comment
Please, Sign In to add comment