public void SetScore(float newScore) { var infoArgs = new ZMPlayerInfoFloatEventArgs(_playerInfo, _totalScore); _totalScore = Mathf.Max(newScore, 0); _totalScore = Mathf.Min(newScore, MAX_SCORE); Notifier.SendEventNotification(OnUpdateScore, infoArgs); }
protected void HandleUpdateScore(ZMPlayerInfoFloatEventArgs args) { UpdateScore(args.info, args.value); }