コード例 #1
0
    private void advanceSinkingAnimation_3()
    {
        if (sinkingTimer_3_current > 0)
        {
            sinkingTimer_3_current--;
        }
        else
        {
            shipIsSinking_3 = false;
            updateGameState();

            // make the shipActual reappear
            playerBoat_actual.SetActive(true);
            wakeController.setShouldPlaceWakes(true);
            // restore the player's health
            shipHealth_current = shipHealth_max;
            healthBarManager.playerHasBeenHealed(shipHealth_current);
        }
    }