コード例 #1
0
 protected override void Awake()
 {
     base.Awake();
     _attackers = GetComponents <IAttacker>().ToList();
     _collider  = GetComponent <ColliderBehaviour>();
     _collider.OnAddCollider    += OnAddCollider;
     _collider.OnRemoveCollider += OnRemoveCollider;
 }
コード例 #2
0
 protected override void Awake()
 {
     base.Awake();
     _collider = GetComponent <ColliderBehaviour>();
     _collider.OnAddCollider    += OnAddCollider;
     _collider.OnRemoveCollider += OnRemoveCollider;
     Entity.OnUpdateTeam        += OnUpdateTeam;
 }