Example #1
0
 public override void Aggro()
 {
     if (wanderState.enabled)
     {
         OnAggro?.Invoke();
         entityScript.Growl();
         Chase();
     }
 }
Example #2
0
    private void OnTriggerEnter(Collider other)
    {
        var player = other.GetComponent <PlayerMovement>();

        if (player != null)
        {
            Debug.Log("Aggrod");
            OnAggro?.Invoke(player.transform);
        }
    }