public static bool SetSnowflake(this Camera camera, float duration) { Snowflake snowflake = camera.GetComponent <Snowflake>(); if (snowflake == null) { return(false); } snowflake.TurnOn(duration); return(true); }