Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void FadingStart()
- {
- //currentColor = new Color(0, 0, 0, 0);
- deltaColor = new Color(1, 1, 1, 3f);
- targetColor = new Color(1, 1, 1, 1);
- //SteamVR_Fade.View(targetColor, 2);
- //currentColor = new Color(0, 0, 0, 1);
- StartCoroutine(Fader());
- }
- //Maybe flip the fading part onto the IEnumerator if its randomly choosing to read one thing first
- IEnumerator Fader()
- {
- yield return new WaitForSecondsRealtime(1f);
- //FindObjectOfType<WorldChanger>().changeLevel();
- FadingEnd();
- }
- //Maybe flip the fading part onto the IEnumerator if its randomly choosing to read one thing first
- public void FadingEnd()
- {
- deltaColor = new Color(0, 0, 0, 1);
- //currentColor = new Color(0, 0, 0, 1);
- targetColor = new Color(0, 0, 0, 0);
- Start(targetColor, 1);
- //SteamVR_Fade.View(targetColor, 1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement