Example #1
0
 // Update is called once per frame
 void Update()
 {
     if (Time.timeSinceLevelLoad >= fadeInTime && fadeInBlack)
     {
         fadeInBlack = false;
         fade.FadeInBlack();
     }
 }
Example #2
0
 // Update is called once per frame
 void Update()
 {
     if (Time.timeSinceLevelLoad > 11f && showOnce)
     {
         fade.FadeInBlack();
         showOnce = false;
     }
     if (Time.timeSinceLevelLoad > 18f && !showOnce)
     {
         fade.FadeOutBlack();
         showOnce = true;
     }
 }
Example #3
0
 // Update is called once per frame
 void Update()
 {
     if (move == true)
     {
         titleText.transform.Translate(0, textMoveSpeed * Time.deltaTime, 0);
         playButtonText.transform.Translate(0, textMoveSpeed * Time.deltaTime, 0);
         MainCam.transform.Translate(0, -cameraMoveSpeed * Time.deltaTime, 0);
         if (MainCam.transform.position.y <= 0)
         {
             move       = false;
             secondMove = true;
             thirdMove  = true;
         }
     }
     if (secondMove == true)
     {
         healthUI.transform.Translate(0, -healthMoveSpeed * Time.deltaTime, 0);
         if (healthUI.transform.position.y <= 960)
         {
             secondMove = false;
         }
     }
     if (thirdMove == true)
     {
         scoreText.transform.Translate(0, -scoreMoveSpeed * Time.deltaTime, 0);
         if (healthUI.transform.position.y <= 960)
         {
             thirdMove = false;
         }
     }
     if (Time.timeSinceLevelLoad >= 60 && fadeInFlag)
     {
         fade.FadeInBlack();
         fadeInFlag = false;
     }
 }