Esempio n. 1
0
 public void TakeCoin()
 {
     _coinCount++;
     CoinTaked?.Invoke(_coinCount);
 }
Esempio n. 2
0
 public void ResetPlayer()
 {
     _coinCount = 0;
     CoinTaked?.Invoke(_coinCount);
     transform.position = new Vector3(0, 1, 0);
 }