Merge branch 'dev' of https://github.com/2aurore/Gameton-06 into dev
# Conflicts: # Gameton-06/Assets/Gameton/Scripts/Character/CharacterBase.cs
This commit is contained in:
@@ -43,6 +43,7 @@ namespace TON
|
||||
|
||||
public AudioClip _attackSound;
|
||||
public AudioClip _deathSound;
|
||||
public AudioClip _hitSound;
|
||||
|
||||
public void Start()
|
||||
{
|
||||
@@ -283,6 +284,8 @@ namespace TON
|
||||
|
||||
OnHPChanged?.Invoke(currentHP, maxHP);
|
||||
|
||||
SoundManager.instance.SFXPlay("Hit", _hitSound);
|
||||
|
||||
// 체력이 0 아래로 떨어지고 현 상태가 IsAlive 일때만 동작하도록 함
|
||||
if (currentHP <= 0f && prevHP > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user