public virtual void SpecialTouched(Vector3 at) { Vector3Int cellPosition = tilemap.WorldToCell(at); Vector2Int index = CellToIndex(cellPosition); Pokemon pokemon = placedPokemons[index.x, index.y]; if (pokemon != null) { pokemonInformation.ShowPokemonInformation(pokemon); } }
public void SpecialTouched(Vector3 at) { pokemonInformation.ShowPokemonInformation(GetComponentInChildren <Pokemon>()); }