Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        _hBlur = Camera.main.GetComponent <hBlur>();

        spr         = Instantiate(spr);
        spr.enabled = false;
    }
Beispiel #2
0
 // 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;
 }