Ejemplo n.º 1
0
    public void UiUpdate(string uiName, int value)
    {
        switch (uiName)
        {
        case "ScoreUp":
            score.ScorePlus(value);
            break;

        case "ComboUp":
            killCombo.ComboUp();
            break;

        case "ComboReset":
            killCombo.ComboReset();
            break;

        case "DeathBlowGaugeUp":
            deathBlowGauge.GaugeUp();
            break;

        case "UseSpecialArts":
            deathBlowGauge.UseLaser();
            break;

        case "Lifes2D":
            lifes2D.ReduceLife();
            break;

        default:
            Debug.LogError("UIの指定ミス");
            break;
        }
    }