Ejemplo n.º 1
0
    public void ClearAll()
    {
        _lastIngredient = null;
        _healthComponent.SetStartHealth();
        _scoreComponent.ResetScore();
        _scoreComponent.gameObject.SetActive(false);

        GameOver.instance.ResetData();
        _playerController.ResetData();
        _throwDirection.ResetData();
        _ingredientBuffer.HideIngredients();
        _burger.ResetBurgers();


        // default Camera position
        _mainCamera.transform.position = _defaultCameraPosition;
        _mainCamera.transform.rotation = _defaultCameraRotation;
    }