mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-14 16:27:19 +00:00
damage type can be specified when damaging object
This commit is contained in:
parent
363ec0dd0e
commit
9734b6f515
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
{
|
||||
|
||||
|
|
Loading…
Reference in a new issue