Added damage type solutions

This commit is contained in:
2025-02-13 14:40:31 +01:00
parent 8f195a479c
commit 5de8f8b104
7 changed files with 1297 additions and 836 deletions

View File

@@ -23,6 +23,7 @@ namespace Beyond
// Start is called before the first frame update
public vHealthController m_healthController;
public int mMaxHP = 10;
//[Tooltip("If empty, accepts all damage types")] public string damageType = "";
public AudioClip m_DestroySound;
public AudioClip m_DestroySound2;
public AudioClip[] hitSounds;
@@ -72,6 +73,7 @@ namespace Beyond
{
if (m_HP <= 0)
return;
//if (damageType)
m_HP -= damage.damageValue;
// if (PointMgr.instance)
// PointMgr.instance.SuccessfulHit(true);