void OnGUI() { if (activeTarget && targetedPokemon != null) { pokemonWild = targetedPokemon.GetComponent <PokemonWild>(); pokemon = pokemonWild.pokemonObj.pokemon; battleGUI.pokemonObj = pokemonWild.pokemonObj; //battleGUI.ToggleHud(); battleGUI.EnemyTargetWindow(pokemon); } }