コード例 #1
0
    void BossDefeat()
    {
        switch (SceneManager.GetActiveScene().name)
        {
        case "Stage1":
            gameObject.AddComponent <DogBossDefeatScript>().Stagenum = 1;
            break;

        case "Stage2":
            gameObject.AddComponent <DogBossDefeatScript>().Stagenum = 2;
            break;

        case "Stage3":
            gameObject.AddComponent <DogBossDefeatScript>().Stagenum = 3;
            break;

        case "StageDeath":
            gameObject.AddComponent <DogBossDefeatScript>().Stagenum = 4;
            break;
        }
        //BGM Change
        audioScript.Ending();
    }