void Awake() { maincamera = GameObject.FindWithTag("MainCamera"); cardselection = maincamera.GetComponent<cardSelection>(); img1= GameObject.Find ("img1").GetComponent<SpriteRenderer>().sprite; img2 = GameObject.Find ("img2").GetComponent<SpriteRenderer>().sprite; changimg = maincamera.GetComponent<ChangeImg>(); }
void Awake() { maincamera = GameObject.FindWithTag("MainCamera"); cardselection = maincamera.GetComponent<cardSelection>(); }