/// <summary>
 /// Sets the on coin get delegate
 /// </summary>
 /// <param name="onCoinGet"></param>
 public void SetOnCoinGetDelegate(OnCoinGet onCoinGet)
 {
     m_onCoinGet = onCoinGet;
 }
Esempio n. 2
0
 public static void TriggerCoinGet(int coinValue)
 {
     OnCoinGet?.Invoke(coinValue);
     Debug.Log("Got a coin it was worth " + coinValue);
 }
 public static void TriggerOnCoinGet(int playerId, int coinValue)
 {
     OnCoinGet?.Invoke(playerId, coinValue);
 }