コード例 #1
0
    // 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;
        }
    }
コード例 #2
0
    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;
    }