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