damage type can be specified when damaging object

This commit is contained in:
in0finite 2020-06-29 17:11:29 +02:00
parent 363ec0dd0e
commit 9734b6f515

View file

@ -8,11 +8,19 @@ namespace SanAndreasUnity.Utilities
public class DamageInfo
{
public float amount = 0f;
public string damageType = null;
public Transform raycastHitTransform = null;
public object attacker = null;
public object data = null;
}
public static class DamageType
{
public static readonly string
Bullet = "Bullet",
Explosion = "Explosion";
}
public class Damageable : MonoBehaviour
{