示例#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();
 }
示例#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);
 }
示例#4
0
 public static void Free <T>(T obj) where T : class
 {
     XObjectPool.Free(obj);
 }