Exemple #1
0
 private void Start()
 {
     blurRenderer                     = BlurRenderer_Mobile.Create();
     blurRenderer.UpdateRate          = 0.02f;
     blurRenderer.updateUsingGameTime = false;
     OnPress();
 }
Exemple #2
0
    public static BlurRenderer_Mobile Create(Camera ThisCamera)
    {
        BlurRenderer_Mobile blurRenderer_Mobile = ThisCamera.gameObject.GetComponent <BlurRenderer_Mobile>();

        if (blurRenderer_Mobile == null)
        {
            blurRenderer_Mobile = ThisCamera.gameObject.AddComponent <BlurRenderer_Mobile>();
        }
        return(blurRenderer_Mobile);
    }
Exemple #3
0
    //override to allow different camera
    static public BlurRenderer_Mobile Create(Camera ThisCamera)
    {
        BlurRenderer_Mobile BRM = ThisCamera.gameObject.GetComponent <BlurRenderer_Mobile>();

        if (BRM == null)
        {
            BRM = ThisCamera.gameObject.AddComponent <BlurRenderer_Mobile>();
        }

        return(BRM);
    }