コード例 #1
0
    public void Die()
    {
        Instantiate(deathExplosion, this.transform.position, this.transform.rotation);
        PlayerData.Instance.isAlive = false;
        DeathMenu dm = FindObjectOfType <DeathMenu>();

        dm.playDeathScreen();
        this.gameObject.SetActive(false);
    }