コード例 #1
0
    private void Start()
    {
        if (scene_index == 0)
        {
            highest_score.text = "Highest Score:  " + PlayerPrefs.GetInt("Highest_Score").ToString();
        }

        audio_manager       = FindObjectOfType <Audio_Manager>().GetComponent <Audio_Manager>();
        music_audio_manager = audio_manager.GetComponent <AudioSource>();

        if (scene_index == 13)
        {
            StartCoroutine(Destroy_Audio_Manager());
        }

        if (scene_index == 1)
        {
            GameObject.Find("Life's").transform.Find("Canvas").gameObject.SetActive(true);
        }
    }