private void OnTriggerEnter(Collider other) { if (other.CompareTag("Player")) { DataManager.Instance.battleEnemyData = enemyData; DataManager.Instance.playerHP = other.GetComponent <CharacterData>().hp; transitionManager.ChangeScene("BattleScene"); } }