public IEnumerator DemoServerStart() { DemoServerInterfaceEx = new DemoServer(); MessageServiceClass.MessageProcessing ("DemoServer was created"+DemoServerInterfaceEx.ToString()); DemoServerInterfaceEx.StartMain(); //!!! while( !DemoServerInterfaceEx.ConnectionStatus) yield return new WaitForSeconds(.1f); ChangeTextureInDemoServer(); // first launch InvokeRepeating("DemoServerRunBot",3,1.5f); InvokeRepeating("ChangeTextureInDemoServer",1,20f); }