update 1.2.0

This commit is contained in:
2025-07-20 10:05:55 +08:00
parent 2afbbf9be4
commit 5396d3e4b8
102 changed files with 93826 additions and 357 deletions
@@ -27,7 +27,7 @@ namespace EmeraldAI
{
#region Target Info
//Since these are evenly used across multiple components, these are kept in the main Emerald System script.
[HideInInspector] public Transform CombatTarget;
public Transform CombatTarget;
[HideInInspector] public Transform TargetToFollow;
[HideInInspector] public Transform LookAtTarget;
[HideInInspector] [SerializeField] public CurrentTargetInfoClass CurrentTargetInfo = null;
@@ -46,6 +46,7 @@ namespace EmeraldAI
[HideInInspector] public NavMeshAgent m_NavMeshAgent;
[HideInInspector] public BoxCollider AIBoxCollider;
[HideInInspector] public Animator AIAnimator;
[HideInInspector] public float TimeSinceEnabled;
#endregion
#region AI Components
@@ -94,6 +95,8 @@ namespace EmeraldAI
void OnEnable()
{
TimeSinceEnabled = Time.time; //Time stamp when the AI was enabled.
//When the AI is enabled, and it has been killed, reset the AI to its default settings.
//This is intended for being used with Object Pooling or spawning systems such as Crux.
if (AnimationComponent.IsDead)