}//if_end private void EnterNextState() { switch (dialogState) { case DialogStateStep.None: break; case DialogStateStep.Step1_TwoPeopleDialog: dialogState = DialogStateStep.Step2_AliceSpeakET; break; case DialogStateStep.Step2_AliceSpeakET: dialogState = DialogStateStep.Step3_AliceSpeakVisualKey; break; case DialogStateStep.Step3_AliceSpeakVisualKey: dialogState = DialogStateStep.Step4_AliceSpeakEnd; break; case DialogStateStep.Step4_AliceSpeakEnd: dialogState = DialogStateStep.None; break; default: break; } }
/// <summary> /// 进入下一个状态 /// </summary> private void EnterNextState() { switch (_DialogState) { case DialogStateStep.None: break; case DialogStateStep.Step1_DoublePersonDialog: _DialogState = DialogStateStep.Step2_AliceSpeakET; //+++自动跳转,不必连按两次才会真正进入下一个+++ DisplayNextDialogRecord(_Img_BGDIalogs.gameObject); break; case DialogStateStep.Step2_AliceSpeakET: _DialogState = DialogStateStep.Step3_AliceSpeakVirtualKey; break; case DialogStateStep.Step3_AliceSpeakVirtualKey: _DialogState = DialogStateStep.Step4_AliceEnd; break; case DialogStateStep.Step4_AliceEnd: _DialogState = DialogStateStep.None; break; default: break; } }
private void Start() { Log.Write(GetType() + "/Start()/"); //当前状态 _DialogState = DialogStateStep.Step1_DoublePersonDialog; //得到背景贴图 _Img_BGDIalogs = transform.parent.Find("BG").GetComponent <Image>(); //注册“背景贴图” RegisterDialogs(); //显示第一句话 DialogUIMgr.Instance.DisplayNextDialog(DialogType.Double, 1); }
void Start() { Log.Write(GetType() + "/Start"); dialogState = DialogStateStep.Step1_TwoPeopleDialog; //find background image _ImgBGDialogs = transform.parent.Find("Background").GetComponent <Image>(); //register bakcground image RegisterDialogs(); DialogUIMgr._Instance.DisplayNextDialog(DialogType.DoubleDialogs, 1); }