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

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