static InfoMessageBootstrap() { if (CheckForMessages) { EditorApplication.update += Update; ServerGateway.ConnectToServer(); } }
private static void Update() { var deltaTime = EditorApplication.timeSinceStartup - _timeMessageWasShown; if (deltaTime >= IntervalBetweenChecks) { ServerGateway.ConnectToServer(); _timeMessageWasShown = EditorApplication.timeSinceStartup; } }