示例#1
0
 // Start is called before the first frame update
 void Start()
 {
     mscroll = GetComponent <ScrollRect>();
     mimage  = GameObject.Find("level_1").GetComponent <myImage>();
     mimage1 = GameObject.Find("level_2").GetComponent <myimage2>();
     mimage2 = GameObject.Find("level_3").GetComponent <myimage2>();
 }
示例#2
0
 // Start is called before the first frame update
 void Start()
 {
     mimage       = GameObject.Find("level_1").GetComponent <myImage>();
     mimage1      = GameObject.Find("level_2").GetComponent <myimage2>();
     mimage2      = GameObject.Find("level_3").GetComponent <myimage2>();
     chooselevel1 = GameObject.Find("chooselevel1").GetComponent <Image>();
     chooselevel2 = GameObject.Find("chooselevel2").GetComponent <Image>();
     chooselevel3 = GameObject.Find("chooselevel3").GetComponent <Image>();
 }