コード例 #1
0
 public void Remove(uint count = 1)
 {
     Count -= count;
     OnCountChange?.Invoke();
     if (Count == 0)
     {
         OnCountSetNull?.Invoke(this);
     }
 }
コード例 #2
0
 public void Add(uint count = 1)
 {
     Count += count;
     OnCountChange?.Invoke();
 }
コード例 #3
0
 private void NotifyStateChange() => OnCountChange?.Invoke();