コード例 #1
0
    private IEnumerator Die()
    {
        dying = true;
        yield return(new WaitForSeconds(DeathTime));

        playerStamina.Damage();
        dying = false;
        transform.position = lastTouched.transform.position + Vector3.up * 0.5f;
        yield break;
    }