コード例 #1
0
    void Die()
    {
        Destroy(gameObject);
        LvlManager mng = GameObject.Find("LvlManager").GetComponent <LvlManager>();

        mng.LoadLevel("Win");
        AudioSource.PlayClipAtPoint(deathSound, transform.position, deathVolume);
    }