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