Exemplo n.º 1
0
    void ChangeStatus(Status status)
    {
        var old = _currentStatus;

        _currentStatus = status;
        if (old != _currentStatus)
        {
            SaveDataUtils.SaveFrom(this);
        }
        _needAction = true;
    }
Exemplo n.º 2
0
 public void SetSound(bool enabled)
 {
     Music = enabled;
     Sfx   = enabled;
     SaveDataUtils.SaveFrom(this);
 }