Ejemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        _gameStats           = GameStats.Instance;
        _gameStats.OnChange += UpdateValues;

        //UpdateValues();
        _gameStats.ChangeValue(StatType.Money, 1000);
        _gameStats.ChangeValue(StatType.GoodMultiplier, 1);
        _gameStats.ChangeValue(StatType.BadMultiplier, 1);
        _gameStats.ChangeValue(StatType.Time, 1000);
        _gameStats.ChangeValue(StatType.TimePerContract, 1);
        _gameStats.UpdateContract(5);
    }