void OnTriggerEnter2D(Collider2D other) { canMove = false; if (other.tag == "Enemy") { Debug.Log(other.GetComponent <BaseEnemy>().EnemyType); dungMgr.BattleBegin(other.GetComponent <BaseEnemy>().EnemyType, other.GetComponent <BaseEnemy>().EnemyCount); } }