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