/// <summary> /// Sets the on coin get delegate /// </summary> /// <param name="onCoinGet"></param> public void SetOnCoinGetDelegate(OnCoinGet onCoinGet) { m_onCoinGet = onCoinGet; }
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); }