Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private IEnumerator waitForSecondTrigger()
- {
- Time.timeScale = 0f;
- float start = Time.realtimeSinceStartup;
- while (Time.realtimeSinceStartup < start + 1f)
- yield return null;
- Time.timeScale = 1f;
- }
- private IEnumerator waitForRubTutorial()
- {
- Time.timeScale = 0f;
- float start = Time.realtimeSinceStartup;
- while (Time.realtimeSinceStartup < start + 2f)
- yield return null;
- Time.timeScale = 1f;
- }
- private void onPlayerTweenFinishedCallback()
- {
- if( bFourthTutorialTriggerHit == true )
- {
- bFourthTutorialTriggerHit = false;
- mRubMultiplierLabel.SetActive(true);
- StartCoroutine( waitForRubTutorial() );
- }
- else if( bFifthTutorialTriggerHit == true )
- {
- bFourthTutorialTriggerHit = false;
- mTutorialSceneScript.mIsStarted = false;
- StartCoroutine (rubCountdown ());
- }
- }
- private IEnumerator rubCountdown()
- {
- mCountdownLabel.SetActive (true);
- for (int i = 3; i > 0; i--)
- {
- mCountdownLabel.GetComponent<UILabel>().text = i.ToString();
- yield return new WaitForSeconds(1f);
- }
- Finger.SetActive(true);
- Finger.transform.localPosition = new Vector3(0f, -3.590966f, -1f);
- mTutorialSceneScript.mIsStarted = true;
- mCountdownLabel.SetActive (false);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement