Beispiel #1
0
 public void AddCaduceus()
 {
     _count++;
     OnCaduceusCountChanged?.Invoke(this, new OnCaduceusCountChangedEventArgs {
         count = _count
     });
 }
Beispiel #2
0
 private void Awake()
 {
     Instance = this;
     OnCaduceusCountChanged?.Invoke(this, new OnCaduceusCountChangedEventArgs {
         count = _count
     });
 }
Beispiel #3
0
 public void Activate()
 {
     if (_count > 0 && PlayerManager.Instance.Revive())
     {
         PlayerManager.Instance.Revive();
         _count--;
         OnCaduceusCountChanged?.Invoke(this, new OnCaduceusCountChangedEventArgs {
             count = _count
         });
     }
 }