private void OnSpaCtrlRedo() { spaCtrl.evtFinished -= OnSpaCtrlFinished; spaCtrl.evtRedo -= OnSpaCtrlRedo; spaCtrl.Dispose(); spaCtrl = ResManager.GetPrefab("Prefabs/SpeakUp/SpeakUpA").GetComponent <SpeakUpCtrlA>(); spaCtrl.evtFinished += OnSpaCtrlFinished; spaCtrl.evtRedo += OnSpaCtrlRedo; }
TestPaperView tpv; //测试题 void Start() { ClickDispatcher.Inst.SetCurrentCamera(Camera.main); UnityEngine.Debug.Log("SpeakUpView::Awake(): 第四阶段 句型表达"); CommonUI com = UIManager.Instance.GetUI <CommonUI>("CommonUI"); com.SetComUITitle("第四阶段 句型表达"); UnityEngine.Debug.Log("SpeakUpView::Start(): 第四阶段 第一关 句型表达"); spaCtrl = ResManager.GetPrefab("Prefabs/SpeakUp/SpeakUpA").GetComponent <SpeakUpCtrlA>(); spaCtrl.evtFinished += OnSpaCtrlFinished; spaCtrl.evtRedo += OnSpaCtrlRedo; //spbCtrl = ResManager.GetPrefab("Prefabs/SpeakUp/SpeakUpB").GetComponent<SpeakUpCtrlB>(); //spbCtrl.evtFinished += OnSpbCtrlFinished; //spbCtrl.evtRedo += OnSpbCtrlRedo; //spcCtrl = ResManager.GetPrefab("Prefabs/SpeakUp/SpeakUpC").GetComponent<SpeakUpCtrlC>(); //spcCtrl.evtFinished += OnSpcCtrlFinished; //spcCtrl.evtRedo += OnSpcCtrlRedo; InitPersonsState(); }