private void OnTriggerEnter2D(Collider2D collision)
 {
     if (TagManager.CompareGameObjectTag(collision.gameObject, TagEnum.Zone))
     {
         Debug.Log("Enter the next zone");
         _zoneManager.GenerateNextZone();
     }
 }
Example #2
0
 private void CheckAttackTarget(GameObject target)
 {
     if (InAttack && !_attackCompleted && TagManager.CompareGameObjectTag(target, _weaponTarget))
     {
         GiveDamage(target);
         _attackCompleted = true;
     }
 }