Esempio n. 1
0
 public void Term()
 {
     if (m_param != null)
     {
         XObjectPool.Free(m_param);
         m_param = null;
     }
 }
 public override void OnLeave(object obj)
 {
     foreach (var behavior in m_hehaviors)
     {
         behavior.Stop(obj);
         XObjectPool.Free(behavior);
     }
     m_hehaviors.Clear();
 }
Esempio n. 3
0
 public void SetData(object param)
 {
     if (m_param != null)
     {
         XObjectPool.Free(m_param);
         m_param = null;
     }
     m_param = param as PARAM;
     SetData(m_view, m_param);
 }
Esempio n. 4
0
 public static void Free <T>(T obj) where T : class
 {
     XObjectPool.Free(obj);
 }