コード例 #1
0
		public void OnServiceBound(ServerCommBinder binder)
		{
			ServerCommService = binder.Service;

			if (ServerCommService == null)
			{
				Log.Error(Tag, "ServerCommService was null!");
				return;
			}

			ServerCommService.Communication += OnServerCommChanged;
			TryEnableSendButton();
		}
コード例 #2
0
		public void OnServiceBound(ServerCommBinder binder)
		{
			ServerCommService = binder.Service;

			if (ServerCommService == null)
			{
				Log.Error(Tag, "ServerCommService was null!");
				return;
			}


			if (!IsServerCommHandlerConnected)
			{
				ServerCommService.Communication += OnServerCommChanged;
				IsServerCommHandlerConnected = true;
			}
			TryEnableStartButton();
		}