Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        probe = gameObject.AddComponent <SmoothLightProbe>();

        mf = SimpleQuad.ImmediateAdd(gameObject, 0.5f, 0.5f);

        onTex  = Texture2D.whiteTexture;
        offTex = Texture2D.blackTexture;
    }
Beispiel #2
0
 void OnEnable()
 {
     interval = 5;
     probe    = gameObject.AddComponent <SmoothLightProbe>();
 }