public static void DrawSphere(this MonoBehaviour caller, Vector3 position, float time = 1, float radius = 1f, Color color = new Color()) { if (color.r <= 0.1 && color.g <= 0.1 && color.b <= 0.1 && color.a <= 0.1) // new color { color = Color.green; } var s = DebugSphere(position, radius, color); caller.After(time, () => { Object.Destroy(s); }); }