// Use this for initialization void Start() { probe = gameObject.AddComponent <SmoothLightProbe>(); mf = SimpleQuad.ImmediateAdd(gameObject, 0.5f, 0.5f); onTex = Texture2D.whiteTexture; offTex = Texture2D.blackTexture; }
void OnEnable() { interval = 5; probe = gameObject.AddComponent <SmoothLightProbe>(); }