public void TriggerOnScoreChangedEvent(int score) { OnScoreChangedEvent?.Invoke(score); }
private void AddScore(Vector3 point) { score++; OnScoreChangedEvent?.Invoke(score); }
public void CallOnScoreChangedEvent(EventData ob = null) => OnScoreChangedEvent?.Invoke(ob);
public void OnFuelCollected() { fuelCollected++; OnScoreChangedEvent.Invoke(fuelCollected - 1, fuelCollected); }