Exemple #1
0
    IEnumerator OnBecameInvisible()
    {
        if (EmeraldComponent.CurrentDetectionRef != Emerald_AI.CurrentDetection.Alert && EmeraldComponent.CurrentTarget == null && !EmeraldComponent.ReturningToStartInProgress && EmeraldComponent.BehaviorRef != Emerald_AI.CurrentBehavior.Companion)
        {
            yield return(new WaitForSeconds(DeactivateSeconds));

            EmeraldComponent.Deactivate();
        }
    }
Exemple #2
0
 void OnBecameInvisible()
 {
     EmeraldComponent.Deactivate();
 }