public static void Play(int id) { AudioSource audio = SEInstance.GetComponent <AudioSource>(); audio.clip = SEInstance.audioClips[id]; audio.Play(); }
void Start() { ns_cs = GS_ns.GetComponent <notes_speed>(); reset_score(); se = SE.GetComponent <AudioSource>(); se.volume = option_main.get_se_num() / 100f; scAni = ScoreCanvas.GetComponent <Animator>(); cs_geneqaz = GS_geneQAZ.GetComponent <generatorQAZ>(); JudgTextSwitch(3); }
private void ResetAll() { N.GetComponent <Renderer>().enabled = false; NE.GetComponent <Renderer>().enabled = false; E.GetComponent <Renderer>().enabled = false; SE.GetComponent <Renderer>().enabled = false; S.GetComponent <Renderer>().enabled = false; SW.GetComponent <Renderer>().enabled = false; W.GetComponent <Renderer>().enabled = false; NW.GetComponent <Renderer>().enabled = false; }