Ejemplo n.º 1
0
    public void Reset()
    {
        bool goodDeath = false;

        if (_Score - _HighScore > 0.1f)
        {
            _HighScore = _Score;
            goodDeath  = true;
        }

        _cart.Reset();
        _avalanche.Reset();
        _generator.Reset();

        if (goodDeath)
        {
            _cart.PlayGoodDeath();
        }
        else
        {
            _cart.PlayBadDeath();
        }

        Camera.main.GetComponent <CameraController>()._ShakeModifier = 0f;
    }