cvr-props/Assets/ABI.CCK/Scripts/Health.cs

38 lines
1.2 KiB
C#
Raw Normal View History

2023-01-22 16:38:23 +01:00
using UnityEngine;
using UnityEngine.Events;
2023-01-22 16:38:23 +01:00
namespace ABI.CCK.Scripts
{
[AddComponentMenu("")]
2023-01-22 16:38:23 +01:00
public class Health : MonoBehaviour
{
public string referenceID = string.Empty;
[Header("Health")]
2023-01-22 16:38:23 +01:00
public float healthBaseAmount = 100f;
public float healthMaxAmount = 100f;
[Header("Health Regeneration")]
public float healthRegenerationDelay;
public float healthRegenerationRate;
public float healthRegenerationCap;
[Header("Armor")]
public float armorBaseAmount;
public float armorMaxAmount;
2023-01-22 16:38:23 +01:00
[Header("Armor Regeneration")]
public float armorRegenerationDelay;
public float armorRegenerationRate;
public float armorRegenerationCap;
[Header("Shield")]
public float shieldBaseAmount;
public float shieldMaxAmount;
2023-01-22 16:38:23 +01:00
[Header("Shield Regeneration")]
public float shieldRegenerationDelay;
public float shieldRegenerationRate;
public float shieldRegenerationCap;
[HideInInspector]
public UnityEvent damageReceivedEvent = new();
2023-01-22 16:38:23 +01:00
}
}