public void GetDamaged() { if (gameOver == false) { // 무적이 아닌 경우 // 데미지 처리 if (shield_invinclble == false && playerStatus.invincible == false) { if (coShieldInvincible == null) { coShieldInvincible = StartCoroutine(CorShieldInvincible(0.5f)); } playerTimeBar.GetDamage(); PlaySound(audioClipGetDamaged); StartCoroutine(CorGetDamageShakeCamera()); } // 무적 상태인 경우 else { // 실드로 인한 무적을 공유함 if (coShieldInvincible == null) //StopCoroutine(coShieldInvincible); { coShieldInvincible = StartCoroutine(CorShieldInvincible()); } } } else { if (deadAnimation.activeSelf == false) { StopAllCoroutines(); spriteBodyRenderer.color = new Color(1, 1, 1, 0); deadAnimation.SetActive(true); } } }