public static ColorAlphaCameraFade Create(Color c, int drawDepth = 0, bool persistBetweenLoads = true) { var go = GameObjectUtil.CreateRoot("ColorAlphaCameraFade"); if (persistBetweenLoads) { GameObject.DontDestroyOnLoad(go); } var fade = go.AddComponent <ColorAlphaCameraFade>(); fade.DestroyOnComplete = true; fade.Color = c; fade.DrawDepth = drawDepth; return(fade); }