Beispiel #1
0
 // Use this for initialization
 new void Start()
 {
     game = GameObject.Find("GameController").GetComponent <GameController>();
     gameObject.GetComponentInChildren <Text>().text      = "Connect to Server";
     gameObject.GetComponentInChildren <Text>().alignment = TextAnchor.MiddleCenter;
     broadcaster = GameObject.Find("ClientListener").GetComponent <ClientBroadcast>();
     onClick.AddListener(TaskOnClick);
 }
 public void SetTheBoardStatus(bool status)
 {
     try
     {
         ClientBroadcast.SetTheBoardStatus(status);
     }
     catch (ApplicationException ae)
     {
         throw new FaultException(ae.Message);
     }
 }
 public void BeforeHostStopped()
 {
     try
     {
         ClientBroadcast.StopTheServer();
         StopTheSmsThread();
         StopConnection();
     }
     catch (Exception ae)
     {
         GetLogInstance.GetInstance.DoWriteEventLog(string.Format("在关闭短信线程与广播的时候失败,失败原因是:{0}", ae.Message), EventType.Warning);
     }
 }