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);
        }
    }
示例#2
0
 public void SpecialTouched(Vector3 at)
 {
     pokemonInformation.ShowPokemonInformation(GetComponentInChildren <Pokemon>());
 }