Beispiel #1
0
    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);
    }
Beispiel #2
0
 protected void HandleUpdateScore(ZMPlayerInfoFloatEventArgs args)
 {
     UpdateScore(args.info, args.value);
 }