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

        msg.Send();
        return(msg);
    }
コード例 #2
0
ファイル: PlayerAlerts.cs プロジェクト: jedi5218/unitystation
 public void ToggleWindow()
 {
     if (!playerAlertsWindow.activeInHierarchy)
     {
         playerAlertsWindow.SetActive(true);
         notifications.ClearAll();
         AdminCheckPlayerAlerts.Send(ServerData.UserID, clientPlayerAlerts.Count);
     }
     else
     {
         playerAlertsWindow.SetActive(false);
     }
 }