예제 #1
0
    public void OnClick()
    {
        BasePokemon[] newList = new BasePokemon[1];
        newList[0] = Encounter_Manager.GetEncounter(Place.Route1);

        Pokemon_Party.AddPokemonToParty(Encounter_Manager.GetEncounter(Place.Route1));

        //Logger.Debug(GetType(), "'" + Pokemon.Name + "' got choosen.");

        BattleManager.GetComponent <Battle_Manager>().StartBattle(Pokemon_Party.List, newList);
    }
예제 #2
0
    public void EnemySpawnEvent()
    {
        ActualChance = 100 / BaseChance;
        RandomFL     = Random.Range(0, ActualChance);

        if (RandomFL == 0)
        {
            Encounter_Manager.Encounter(Place);
        }
        else
        {
            //nothing happens
            //Debug.Log(RandomFL);
        }
    }