Example #1
0
    void ResetPlayerState()
    {
        CurrentBuildingIndex = 0;
        CurrentFloorIndex    = 0 - CurrentBuilding.BaseLevel;

        CameraManager.currentFloor = CurrentBuilding.Floors[CurrentFloorIndex];
        CameraManager.Snap();

        TimeLeft   = TIME_LEFT;
        TimePlayed = 0f;
        Score      = 0;

        CurrentGameState      = EGameState.GamePlay;
        CameraManager.enabled = true;
        CameraManager.UpdateArrows();

        if (!IsFirstGame)
        {
            timerContainer.SetActive(true);
        }

        RemoveObjectOfHand();
        CurrentFloor.Reveal(true);

        CurrentFloor.LightsOff();

        GameOverText.gameObject.SetActive(false);
        gameOverPanel.gameObject.SetActive(false);
    }