public void SpawnPointsNotification(Vector3 position, int points) { PointsNotification pointsNotification = Instantiate(pointsNotificationPrefab, position, Quaternion.identity) as PointsNotification; pointsNotification.SetPoints(points); pointsNotification.Play(); }
public Task NotifyPoints(PointsNotification notification) { return(Task.WhenAll ( Clients.User(notification.UserId) .OnUserNotifyPoints(new { notification.Points }) )); }
public Task NotifyPoints(PointsNotification notification) { return(SafeInvoke(nameof(NotifyPoints), notification)); }