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); }); }
public static void RaiseOnChangeScoreEvent(int score) { OnChangeScore?.Invoke(score); }
private void ProcessChangeScore(float amount) { currentScore += amount; OnChangeScore?.Invoke(currentScore); }