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