void Awake() { creator = FindObjectOfType <TPFaderCreator>(); if (Fade == null) { Fade = () => creator.Fade(FadeToScene, FadeType); } }
void Awake() { if (instance == null) { instance = this; } else { Destroy(this.gameObject); return; } DontDestroyOnLoad(gameObject); Refresh(); }