Exemplo n.º 1
0
 void Update()
 {
     //TimeScaleが0の時に実行されるreturn
     if (Mathf.Approximately(Time.timeScale, 0f))
     {
         return;
     }
     if (Flag && !Flag2)
     {
         clossover = SMS.LoadRequest();
         if (0.9f <= clossover)
         {
             clossover = 1.0f;
             Flag      = false;
         }
         mat.SetFloat("_Progress", clossover);
     }
     if (!Flag && Flag2)
     {
         clossover2 += Time.deltaTime;
         if (1 <= clossover2)
         {
             Flag2 = false;
         }
         mat2.SetFloat("_Progress", clossover2);
     }
 }