public void FadeInWithCallback() { CameraFade.In(() => { Debug.Log("fade in finished"); }, 2f); }
void OnTriggerEnter(Collider other) { if (other.CompareTag("Player")) { //CameraFade.Out(); CameraFade.Out(() => { OldSchoolFPC.Instance.transform.position = _destination.position; CameraFade.In(_fadingTime); }, _fadingTime); } }
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); }
void Start() { CameraFade.Alpha = 1; CameraFade.In(5f); }