コード例 #1
0
    IEnumerator ShowLose()
    {
        Panel.SetActive(true);
        PanelLose.SetActive(true);
        AudioSource.PlayClipAtPoint(LoseVoice, new Vector3(0f, 0f, -10f));
        yield return(new WaitForSeconds(LoseVoice.length + 0.75f));

        Group1.SetActive(false);
        Group2.SetActive(true);
        Panel.SetActive(false);
        PanelLose.SetActive(false);
    }