Exemple #1
0
    public void SpawnPointsNotification(Vector3 position, int points)
    {
        PointsNotification pointsNotification = Instantiate(pointsNotificationPrefab, position, Quaternion.identity) as PointsNotification;

        pointsNotification.SetPoints(points);
        pointsNotification.Play();
    }
Exemple #2
0
 public Task NotifyPoints(PointsNotification notification)
 {
     return(Task.WhenAll
            (
                Clients.User(notification.UserId)
                .OnUserNotifyPoints(new
     {
         notification.Points
     })
            ));
 }
Exemple #3
0
 public Task NotifyPoints(PointsNotification notification)
 {
     return(SafeInvoke(nameof(NotifyPoints), notification));
 }