private void ChangeLatency(int diff) { if (LatencyChanged != null) { latencyString.Text = GetLatencyString(LatencyChanged.Invoke(diff)); latencyString.Position = new Vector2(400 - latencyString.Width / 2, latencyString.Position.Y); } }
protected virtual void OnLatencyChanged(int sign) { LatencyChanged?.Invoke(sign); }