private void Start() { blurRenderer = BlurRenderer_Mobile.Create(); blurRenderer.UpdateRate = 0.02f; blurRenderer.updateUsingGameTime = false; OnPress(); }
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); }
//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); }