// Start is called before the first frame update void Start() { // bag = GlobalControl.Instance.bag; cursor = 0; picture.GetComponent <Image>(); bcScript = battleCanvas.GetComponent <BattleCanvasScript>(); pcScript = pokemonCanvas.GetComponent <PokemonCanvasScript>(); }
// IF YOUR POKEMON DIES public void pickNewPoke() { if (!allDead()) { pokemon.SetActive(true); print("Select a new pokemon to swap with."); PokemonCanvasScript pcScript = pokemon.GetComponent <PokemonCanvasScript>(); pcScript.iDied(); } }