// Use this for initialization void Awake() { script = GameObject.Find("NotesLauncher").GetComponent <NotesLaunch>(); speed = script.speed; StartCoroutine(Launch()); StartCoroutine(destroy()); }
// Use this for initialization void Start() { notes = new GameObject [256]; judge = new GameObject [5]; Combo_Manager = GameObject.Find("combo").GetComponent <Combo_Manager>(); script = GameObject.Find("NotesLauncher").GetComponent <NotesLaunch> (); Audio = this.gameObject.GetComponent <AudioSource> (); // 判定を設定 judge [0] = Resources.Load("Prefab/Perfect") as GameObject; judge [1] = Resources.Load("Prefab/Great") as GameObject; judge [2] = Resources.Load("Prefab/GOOD") as GameObject; judge [3] = Resources.Load("Prefab/BAD") as GameObject; judge [4] = Resources.Load("Prefab/MISS") as GameObject; }