コード例 #1
0
    private void changePlayerSpeed()
    {
        switch (sheepPickedup.Count)
        {
        case 0:
            userControls.changeWalkSpeed(1f);
            break;

        case 1:
            userControls.changeWalkSpeed(1f);
            break;

        case 2:
            userControls.changeWalkSpeed(0.85f);
            break;

        case 3:
            userControls.changeWalkSpeed(0.65f);
            break;
        }
    }