void PlotOver() { print("剧情 没有文本了!!!! 结束剧情"); //结束剧情 ClickJishiReSet(); if (IsNeedRecordByOver) { GlobalDateControl.SetMsgInCurrentGKDateAndSetInZGKDate(this.TalkID, IsNeedRecordByOver); } HuanYuanCamera(); if (_cBar) { _cBar.GetComponent <UI_talkBar>().RemoveSelf(); } if (!IsOverMoveSelf) { StartCoroutine(SetPlotFalse(0.4f, true)); return; } StartCoroutine(SetPlotFalse(0.4f)); }
void PlotOverSave() { print("对话 存档是否 被调用 !!!!!!!!!!!!"); for (int i = 0; i < OverCunRuShuJuArr.Length; i++) { GlobalDateControl.SetMsgInCurrentGKDateAndSetInZGKDate(OverCunRuShuJuArr[i]); } //ObjectEventDispatcher.dispatcher.addEventListener(EventTypeName.OPEN_DOOR, OpenDoor); ObjectEventDispatcher.dispatcher.dispatchEvent(new UEvent(EventTypeName.OPEN_DOOR, "Men_2-0"), this); if (IsNeedRecordByOver) { GlobalDateControl.SaveMapDate(); } //是否出现啥 徽章 或者爆炸 等 //if (IsOverMoveSelf) //{ // OverDelSelf(); //} //能不能延迟 才能使玩家 行动 }
void GetRecord() { if (IsGetRecordSelf) { print(" 记录自己!!!!!!!!!! " + this.transform.name); GlobalDateControl.SetMsgInCurrentGKDateAndSetInZGKDate(this.transform.name); } }
public void GetStartPlotByTimes() { print("?????? playNums: " + playNums); if (IsHitAlertControl && playNums == maxNums) { //对话完成 这里之后可以操作 if (talkBar) { talkBar.GetComponent <UI_talkBar>().RemoveSelf(); } OutHitKuaiReSet(); GetComponent <TheTimer>().TimesAdd(0.4f, TimeTalkBarCallBack2); //IsSHowTalkBar = false; playNums = 0; print(" 对话框 结束 playNums 归零 " + playNums); print("---------------------------------------------------------------------------"); if (IsStopPlayerControl) { CanControl(); } //存档 GlobalDateControl.SetMsgInCurrentGKDateAndSetInZGKDate(this.TalkID); IsPlotOver = true; return; } string str = plotList[playNums]; string txtTop = str.Split('-')[0]; _time = float.Parse(str.Split('-')[1]); switch (txtTop) { case "talk": string talkMen = str.Split('-')[2]; string talkContent = str.Split('-')[3]; GetTalk(talkContent, talkMen, _time); break; case "walk": break; } if (!IsHitAlertControl) { GetComponent <TheTimer>().TimesAdd(_time, TimeCallBack); } if (playNums < maxNums) { playNums++; } }
//到岸 void Daoan() { if (IsStopPlot) { return; } if (!IsCloseDoor) { IsCloseDoor = true; player = GlobalTools.FindObjByName("player"); ObjectEventDispatcher.dispatcher.dispatchEvent(new UEvent(EventTypeName.OPEN_DOOR, "Men_1-1"), this); XiachuanGangqing(); } ycNums += Time.deltaTime; if (ycNums < 1) { return; } if (!IsStandUp) { if (player.GetComponent <GameBody>().GetDB().animation.lastAnimationName == "getStand_1") { IsStandUp = true; Globals.isInPlot = false; player.GetComponent <GameBody>().GetStand(); //GlobalTools.FindObjByName("PlayerUI").GetComponent<PlayerUI>().GetUIShow(); GlobalTools.FindObjByName("MainCamera").GetComponent <CameraController>().ReSetNewAddXPos(); return; } //print(" lastAnimationName " + player.GetComponent<GameBody>().GetDB().animation.lastAnimationName+" "+ player.GetComponent<GameBody>().GetDB().animation.lastAnimationState + " Globals.isInPlot " + Globals.isInPlot); if (player.GetComponent <GameBody>().GetDB().animation.lastAnimationName != "getStand_1") { player.GetComponent <GameBody>().GetDB().animation.GotoAndPlayByFrame("getStand_1"); } } //print("起始剧情结束"); GlobalDateControl.SetMsgInCurrentGKDateAndSetInZGKDate(Plot1.QISHI, false, true); }