Added damage type solutions
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user