Пример #1
0
 static InfoMessageBootstrap()
 {
     if (CheckForMessages)
     {
         EditorApplication.update += Update;
         ServerGateway.ConnectToServer();
     }
 }
Пример #2
0
        private static void Update()
        {
            var deltaTime = EditorApplication.timeSinceStartup - _timeMessageWasShown;

            if (deltaTime >= IntervalBetweenChecks)
            {
                ServerGateway.ConnectToServer();
                _timeMessageWasShown = EditorApplication.timeSinceStartup;
            }
        }