// Use this for initialization void Start() { _hBlur = Camera.main.GetComponent <hBlur>(); spr = Instantiate(spr); spr.enabled = false; }
// Use this for initialization void Start() { camera = GameObject.Find("Main Camera").GetComponent <Camera>(); hBlur = Camera.main.GetComponent <hBlur>(); img = GameObject.Find("Image").GetComponent <Image>(); //red = img.GetComponent<Image>().color.r; //green = img.GetComponent<Image>().color.g; //blue = img.GetComponent<Image>().color.b; }