public void Destroy() { looper.Reset(); looper.SetLoopCallBack(null); _sortUnitList.Clear(); _instance = null; }
public void Init(Func <int, int, int> loopCallBack) { _instance = this; looper.Reset(); looper.SetLoopCallBack(loopCallBack); }