Esempio n. 1
0
 public void Close()
 {
     if (mi != null)
     {
         mi.Clear();
         mi = null;
     }
 }
Esempio n. 2
0
 private void ClearChat()
 {
     if (mi != null)
     {
         mi.Clear();
     }
     btn_Mil.visible = false;
     TimerManager.inst.Remove(Time_Tick);
     bar.value   = 0;
     bar.visible = false;
 }
Esempio n. 3
0
    private void ClearChat()
    {
        try {
            if (mi != null)
            {
                mi.Clear();
            }
            if (btn_Mil != null)
            {
                btn_Chat.visible = true;
                btn_Mil.visible  = false;
            }
//            TimerManager.inst.Remove(TimeChat_Tick);
            if (bar != null)
            {
                bar.value   = 0;
                bar.visible = false;
            }

//			Debug.LogError("ClearChat");
        } catch (Exception e) { }
    }
Esempio n. 4
0
 public void AddMicro_Uid(string uid)
 {
     if (!micros_Uid.ContainsKey(uid))
     {
         micros_Uid.Add(uid, "1");
         object o = micros.Find((object obj) =>
         {
             Dictionary <string, object> data = (Dictionary <string, object>)obj;
             if (data ["uid"].ToString() == uid)
             {
                 return(true);
             }
             return(false);
         });
         micros.Remove(o);
         Dictionary <string, object> oo = (Dictionary <string, object>)o;
         Micro mi = (Micro)oo ["micro"];
         if (mi != null)
         {
             mi.Clear();
         }
         DispatchManager.inst.Dispatch(new MainEvent(MainEvent.MICRO_ADD));
     }
 }