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