public void MoveSelectedPokemon() { if (pokemonScript.canFly == false) //Read selected pokemon if fly bool { flyOverTiles.enabled = true; surfOverTiles.enabled = true; } if (pokemonScript.canSurf == true) //Read seleted pokemon if surf bool { surfOverTiles.enabled = false; } StartSpot = transform.position; if (Input.GetKeyDown(KeyCode.UpArrow) || Input.GetKeyDown(KeyCode.W)) { CheckPokemonMove(NorthDirection); pokemonAnimation.ResetTrigger("Idle"); pokemonAnimation.SetTrigger("North"); } else if (Input.GetKeyDown(KeyCode.RightArrow) || Input.GetKeyDown(KeyCode.D)) { CheckPokemonMove(EastDirection); pokemonAnimation.ResetTrigger("Idle"); pokemonAnimation.SetTrigger("East"); } else if (Input.GetKeyDown(KeyCode.DownArrow) || Input.GetKeyDown(KeyCode.S)) { CheckPokemonMove(SouthDirection); pokemonAnimation.ResetTrigger("Idle"); pokemonAnimation.SetTrigger("South"); } else if (Input.GetKeyDown(KeyCode.LeftArrow) || Input.GetKeyDown(KeyCode.A)) { CheckPokemonMove(WestDirection); pokemonAnimation.ResetTrigger("Idle"); pokemonAnimation.SetTrigger("West"); } else if (Input.GetKey(KeyCode.Escape)) { DeleteColors(); AnimationSetIdle(); flyOverTiles.enabled = false; surfOverTiles.enabled = false; pokemonScriptHolder.transform.position = pokemonScriptHolder.transform.position - new Vector3(xCount, yCount); //Pokemon reset spot to before move button was clicked spotTracker.transform.position = StartSpot - new Vector2(xCount, yCount); //Camera reset spot to before move button was clicked displayScript.cameraMode = 1; } else if (Input.GetKey(KeyCode.Return)) { DeleteColors(); AnimationSetIdle(); pokemonScript.actionCount = pokemonScript.actionCount + 1; if (pokemonScript.actionCount == 1) { displayScript.cameraMode = 1; } else { waitScript.WaitButtonClick(); } } }