コード例 #1
0
    public void OnMinigameExit(SuccessState successState)
    {
        GD.Print("exit minigame CS SuccessState: ", successState);
        state = PlayerState.Idle;
        MainSystem system = GetNode <MainSystem>(String.Format("../{0}", activeSystem.ToString()));

        switch (successState)
        {
        case SuccessState.BOTCH:
            system.Repair();
            system.ChangeEfficiency(-0.2f);
            break;

        case SuccessState.SUCCESS:
            system.Repair();
            system.ChangeEfficiency(0.2f);
            break;

        case SuccessState.PASSABLE:
            system.Repair();
            break;

        case SuccessState.NOATTEMPT:
        default:
            break;
        }
    }