public static AdminCheckPlayerAlerts Send(string playerId, int currentCount) { AdminCheckPlayerAlerts msg = new AdminCheckPlayerAlerts { PlayerId = playerId, CurrentCount = currentCount }; msg.Send(); return(msg); }
public void ToggleWindow() { if (!playerAlertsWindow.activeInHierarchy) { playerAlertsWindow.SetActive(true); notifications.ClearAll(); AdminCheckPlayerAlerts.Send(ServerData.UserID, clientPlayerAlerts.Count); } else { playerAlertsWindow.SetActive(false); } }