void OnstCCtrlFinished() { aqCCtrl.evtFinished -= OnstCCtrlFinished; aqCCtrl.evtRedo -= OnstCCtrlRedo; aqCCtrl.Dispose(); tpv = ResManager.GetPrefab("Prefabs/UI/TestPaperView").GetComponent <TestPaperView>(); tpv.evtFinished += OnTestPaperFinished; tpv.evtRedo += OnTestPaperRedo; }
void OnTestPaperRedo() { tpv.evtFinished -= OnTestPaperFinished; tpv.evtRedo -= OnTestPaperRedo; tpv.Dispose(); tpv = ResManager.GetPrefab("Prefabs/UI/TestPaperView").GetComponent <TestPaperView>();; tpv.evtFinished += OnTestPaperFinished; tpv.evtRedo += OnTestPaperRedo; }