Example #1
0
 // Start is called before the first frame update
 void Start()
 {
     img = GameObject.Find("Image").GetComponent <image_alpha>();
     //gm = GameObject.Find("right").GetComponent<GetMagic>();
     gm   = GameObject.Find("Controller (right)").GetComponent <GetMagic>();
     hsth = GameObject.Find("note").GetComponent <HitSth>();
 }
Example #2
0
 // Start is called before the first frame update
 void Start()
 {
     audioP = GameObject.Find("AudioPlayer").GetComponent <AudioPlayer>();
     //hb = GameObject.Find("temp").GetComponent<Hit_block>();
     hb = GameObject.Find("[CameraRig]").GetComponent <Hit_block>();
     //gm = GameObject.Find("right").GetComponent<GetMagic>();
     gm    = GameObject.Find("Controller (right)").GetComponent <GetMagic>();
     slide = 0;
     score = 0;
     time  = -1;
 }