public void Collected(Coin coin) { if (!enabled) { return; } var value = coin.m_Value; GlobalData.DispatchCoinCollected(value); var eventData = new CoinCollectorEventData() { m_Coin = coin, m_Value = value, }; m_Events.Collected.Invoke(eventData); }
public void OnCollected() { GlobalData.DispatchCoinCollected(m_Value); }