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

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