public override void Aggro() { if (wanderState.enabled) { OnAggro?.Invoke(); entityScript.Growl(); Chase(); } }
private void OnTriggerEnter(Collider other) { var player = other.GetComponent <PlayerMovement>(); if (player != null) { Debug.Log("Aggrod"); OnAggro?.Invoke(player.transform); } }