void Start() { // In order to test and process messages we need these options. // However you can remove them if They do not suit your design. Application.runInBackground = true; Input.multiTouchEnabled = false; // Singleton implementation if (Instance == null) { Instance = this; } StartNLog(); gameObject.AddComponent <OnGuiDebugger>(); #region DEBUG ResetButton.onClick.AddListener(ResetButtonHandler); IbsButton.onClick.AddListener(IbsButtonHandler); DbsButton.onClick.AddListener(DbsButtonHandler); AplButton.onClick.AddListener(AplButtonHandler); DplButton.onClick.AddListener(DplButtonHandler); AdlButton.onClick.AddListener(AdButtonHandler); DdlButton.onClick.AddListener(DdButtonHandler); PauseButton.onClick.AddListener(PauseButtonHandler); #endregion ECSManager.Instance.Start(); new Thread(() => { _client = GameClient.Instance; _client.SetCallback(a => _messageConsumer.AddMessage(a)); yojimbo.printf(yojimbo.LOG_LEVEL_INFO, "Connecting client"); _client.Start(); }).Start(); }