コード例 #1
0
    public void Disappear()
    {
        PlayerProperty property = GetComponent <PlayerProperty>();

        if (property.HaveEquipment("GoldenApple") && !Player.GetInstance().hasRelived)
        {
            AudioManager.GetInstance().PlayRecoverAudio();
            Player.GetInstance().hasRelived = true;
            animator.SetTrigger(relive);
            property.isDead = false;
            property.SetHealth(4);
            return;
        }
        StartCoroutine(FadeOut());
    }