public void FadeInWithCallback()
 {
     CameraFade.In(() =>
     {
         Debug.Log("fade in finished");
     }, 2f);
 }
示例#2
0
    void OnTriggerEnter(Collider other)
    {
        if (other.CompareTag("Player"))
        {
            //CameraFade.Out();

            CameraFade.Out(() =>
            {
                OldSchoolFPC.Instance.transform.position = _destination.position;
                CameraFade.In(_fadingTime);
            }, _fadingTime);
        }
    }
示例#3
0
 public void nextScene()
 {
     ++currentScene;
     try
     {
         CameraFade.Out(() =>
         {
             SceneManager.LoadScene(scenes[currentScene]);
             CameraFade.In(2f);
         }
                        , 2f);
         SceneManager.LoadScene(scenes[currentScene]);
     }
     catch (ArgumentOutOfRangeException exc)
     {
         Debug.LogError("А сценки то кончились");
         loadFinal();
     }
 }
 public void FadeIn()
 {
     CameraFade.In(2f);
 }
 public void FixedDurationFadeIn()
 {
     CameraFade.In(2f, false, true);
 }
 public void RestartAndFadeIn()
 {
     CameraFade.In(2f, true);
 }
示例#7
0
 void Start()
 {
     CameraFade.Alpha = 1;
     CameraFade.In(5f);
 }