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