Esempio n. 1
0
    private void Show(float delay)
    {
        var result = (int)SliderController.currentResult;

        DOVirtual.DelayedCall(delay, () =>
        {
            fade.SetActive(true);
            complete.SetActive(result >= 0);
            faile.SetActive(result < 0);

            OnChangeScore?.Invoke();

            OnStopCar?.Invoke(1);
        });
    }
Esempio n. 2
0
 public static void RaiseOnChangeScoreEvent(int score)
 {
     OnChangeScore?.Invoke(score);
 }
Esempio n. 3
0
 private void ProcessChangeScore(float amount)
 {
     currentScore += amount;
     OnChangeScore?.Invoke(currentScore);
 }