private void OnParticleCollision(GameObject other) { if (other.CompareTag("Fire")) { HealthBehaviour _healthScript = other.GetComponent(typeof(HealthBehaviour)) as HealthBehaviour; if (_healthScript != null) { if (_weaponScript.GetWeaponID() == _healthScript.GetHealthID()) { _healthScript.HealthRegenerate(_weaponScript.GetCureValue()); } } } }