//Constructor function for this class public EnemyTileEncounterInfo(EnemyEncounter encounter_) { //Getting the object prefab for the encounter this.encounterPrefab = encounter_.encounterPrefab; //Getting the tile that this encounter is on TileColRow encounterCoords = TileMapManager.globalReference.GetTileCoords(encounter_.GetComponent <Movement>().currentTile); this.encounterTileCol = encounterCoords.col; this.encounterTileRow = encounterCoords.row; }