protected override void Awake() { base.Awake(); _attackers = GetComponents <IAttacker>().ToList(); _collider = GetComponent <ColliderBehaviour>(); _collider.OnAddCollider += OnAddCollider; _collider.OnRemoveCollider += OnRemoveCollider; }
protected override void Awake() { base.Awake(); _collider = GetComponent <ColliderBehaviour>(); _collider.OnAddCollider += OnAddCollider; _collider.OnRemoveCollider += OnRemoveCollider; Entity.OnUpdateTeam += OnUpdateTeam; }