// 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>(); }
// 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; }