예제 #1
0
    public void ResetPlayer()
    {
        currentHealth = maxHealth;
        Shooting shooting = GetComponent <Shooting>();

        shooting.ResetBullets();
        transform.position       = spawnPosition.position;
        elapsedInvincibilityTime = 0;
        flashCounter             = 0;
        spriteRenderer.enabled   = true;
    }