//######################################################################################################## void Awake() { Instance = this; Battle.battleGroupList.onAdd += OnAddBattleGroup; Battle.battleGroupList.onRemove += OnRemoveBattleGroup; }
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; }
public override void DoFinalJob() { battleGroup.battleLevelUpController.totalExp += value; UIBattleLevelUp.ScaleText(); }