Exemplo n.º 1
0
 private void GetNewActive()
 {
     // Called in animator
     active           = currentRoute.GetSpawn();
     currentHitPoints = active.GetHitPoints();
     UpdateText();
     sprite.sprite = active.GetPokemon().GetSpriteFront();
     anim.SetBool("Fainted", false);
 }
Exemplo n.º 2
0
    void Start()
    {
        if (player)
        {
            active        = team.GetPokemon(0);
            sprite.sprite = active.GetPokemon().GetSpriteBack();
        }
        else
        {
            GetNewActive();
            sprite.sprite = active.GetPokemon().GetSpriteFront();
        }

        currentHitPoints = active.GetHitPoints();
        UpdateText();
    }