2023-01-22 16:38:23 +01:00
|
|
|
|
using UnityEngine;
|
2024-08-03 22:24:42 +02:00
|
|
|
|
using UnityEngine.Events;
|
2023-01-22 16:38:23 +01:00
|
|
|
|
|
|
|
|
|
namespace ABI.CCK.Scripts
|
|
|
|
|
{
|
2024-08-03 22:24:42 +02:00
|
|
|
|
[AddComponentMenu("")]
|
2023-01-22 16:38:23 +01:00
|
|
|
|
public class Health : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
public string referenceID = string.Empty;
|
2024-08-03 22:24:42 +02:00
|
|
|
|
|
|
|
|
|
[Header("Health")]
|
2023-01-22 16:38:23 +01:00
|
|
|
|
public float healthBaseAmount = 100f;
|
|
|
|
|
public float healthMaxAmount = 100f;
|
|
|
|
|
[Header("Health Regeneration")]
|
2024-08-03 22:24:42 +02:00
|
|
|
|
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")]
|
2024-08-03 22:24:42 +02:00
|
|
|
|
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")]
|
2024-08-03 22:24:42 +02:00
|
|
|
|
public float shieldRegenerationDelay;
|
|
|
|
|
public float shieldRegenerationRate;
|
|
|
|
|
public float shieldRegenerationCap;
|
|
|
|
|
|
|
|
|
|
[HideInInspector]
|
|
|
|
|
public UnityEvent damageReceivedEvent = new();
|
2023-01-22 16:38:23 +01:00
|
|
|
|
}
|
|
|
|
|
}
|