Ejemplo n.º 1
0
 public static void InvokeScoreChangeEvent(int point) => ScoreChangeEvent?.Invoke(point);
Ejemplo n.º 2
0
    void OnScore(object eventArgs)
    {
        ScoreChangeEvent scoreEvent = (ScoreChangeEvent)eventArgs;

        textMesh.text = "Score: " + scoreEvent.CurrentScore;
    }
Ejemplo n.º 3
0
 public void OnScore(int scoreToAdd)
 {
     ServiceLocator.instance.GetService <SoundManager>().PlayOneShot(scoreClip);
     ScoreChangeEvent.Raise(onScoreEvent, scoreToAdd);
 }