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