Beispiel #1
0
    //########################################################################################################
    void Awake()
    {
        Instance = this;

        Battle.battleGroupList.onAdd    += OnAddBattleGroup;
        Battle.battleGroupList.onRemove += OnRemoveBattleGroup;
    }
Beispiel #2
0
    IEnumerator LevelUp()
    {
        float interval = 0.5f;
        while (battleHero.LevelUpExpValue <= Battle.currentBattleGroup.battleLevelUpController.totalExp)
        {
            if (onClickLevelUp != null)
                onClickLevelUp(battleHero);

            UIBattleLevelUp.PlaySoundLevelUp();

            yield return new WaitForSecondsRealtime(interval);

            if (interval > 0.01f)
                interval *= 0.8f;

            if (interval < 0.01f)
                interval = 0.01f;
        }

        yield break;
    }
Beispiel #3
0
    public override void DoFinalJob()
    {
        battleGroup.battleLevelUpController.totalExp += value;

        UIBattleLevelUp.ScaleText();
    }