Example #1
0
    public static AdminCheckPlayerAlerts Send(string playerId, int currentCount)
    {
        AdminCheckPlayerAlerts msg = new AdminCheckPlayerAlerts
        {
            PlayerId     = playerId,
            CurrentCount = currentCount
        };

        msg.Send();
        return(msg);
    }
Example #2
0
 public void ToggleWindow()
 {
     if (!playerAlertsWindow.activeInHierarchy)
     {
         playerAlertsWindow.SetActive(true);
         notifications.ClearAll();
         AdminCheckPlayerAlerts.Send(ServerData.UserID, clientPlayerAlerts.Count);
     }
     else
     {
         playerAlertsWindow.SetActive(false);
     }
 }