示例#1
0
 private void FixedUpdate()
 {
     if (_fadein)
     {
         _t -= Time.deltaTime / delay;
         if (_t < 0)
         {
             enabled = false;
             return;
         }
     }
     else
     {
         _t += Time.deltaTime / delay;
         if (_t > 1)
         {
             enabled = false;
             _load.CurtainClosed();
             return;
         }
     }
     _image.color = new Color(0f, 0f, 0f, _t);
 }