// Use this for initialization void Awake() { switch (DifficultyHolder.Difficulty) { case Difficulty.Easy: currentLevarages = easyLevarages; break; case Difficulty.Normal: currentLevarages = normalLevarages; break; case Difficulty.Hard: currentLevarages = hardLevarages; break; case Difficulty.Lunatic: currentLevarages = hardLevarages; break; default: currentLevarages = normalLevarages; break; } }
private void Awake() { Levarages currentLevarages = difficultyLevarageHolder.currentLevarages; hp = hpOrigin * currentLevarages.hpLevarage; attack = attackOrigin * currentLevarages.attackLevarage; moveSpeed = moveSpeedOrigin * currentLevarages.moveSpeedLevarage; shotSpeed = shotSpeedOrigin * currentLevarages.shotSpeedLevarage; shotIntervalSecond = shotIntervalSecondOrigin * currentLevarages.shotIntervalLevarage; hpDebuffLevarege = hpDebuffLevarageOrigin * currentLevarages.hpDebuffLevarage; speedDebuffLevarage = speedDebuffLevarageOrigin * currentLevarages.speedDebuffLevarage; }