// Start is called before the first frame update void Start() { //print(GlobalDateControl.GetCurrentGKDate()); //GlobalDateControl.SetDateInCGKDateAndGetInZGKDate(QISHI); if (GlobalDateControl.IsHasDateByName(QISHI)) { IsHasPlayed = true; print(" 起始剧情已经播放完毕!!! "); } else { print(" @@@@ 没有记录 "); } if (IsHasPlayed) { //飞船是到岸的 默认-89.62 到岸是 -23.73 FeiChuanDaoAn(); _text.GetComponent <CanvasGroup>().alpha = 0; //龙不动 //门是关的 //ObjectEventDispatcher.dispatcher.dispatchEvent(new UEvent(EventTypeName.OPEN_DOOR, "Men_1-1"), this); return; } zz.GetComponent <CanvasGroup>().alpha = 1; txtCSPos = _text.transform.position; _text.GetComponent <CanvasGroup>().alpha = 0; }
void OnTriggerEnter2D(Collider2D Coll) { if (GlobalDateControl.IsHasDateByName(TalkID)) { return; } if (!IsHitKuaiStop && !IsHitAlertControl && !isStarting) { return; } if (Coll.tag == "Player") { if (IsHitKuaiStop) { IsStartPlot = true; startNums = 0; playNums = 0; HitKuaiStop(); if (GlobalTools.FindObjByName("player").GetComponent <GameBody>().IsGround) { Globals.IsHitPlotKuai = true; } print("IsHitKuaiStop!!!!! 剧情开始 "); GetStartPlotByTimes(); //显示提示牌 //ShowAlertBar(); return; } //if (!IsHitAlertControl && !isStarting) //{ // //自动播放的 // isStarting = true; // playNums = 0; // //GetStart(); // GetStartPlotByTimes(); //} //else //{ // //玩家点击交互的 // playNums = 0; // //StopPlayerControl(); // if (GlobalTools.FindObjByName("player").GetComponent<GameBody>().IsGround) Globals.IsHitPlotKuai = true; // print("hitplotKuai"); // //显示提示牌 // //ShowAlertBar(); //} } }
//是否已经 播放完 读取记录判断 ***新库类 根据位置等 读取记录信息 void CheckSaveDate() { //剧情是否被播过? //GlobalSetDate.instance.TempZGuanKaStr; if (GlobalDateControl.IsHasDateByName(TalkID)) { //有记录 IsHitKuaiStop = false; } else { print("该剧情 没有 记录过!"); } }
//判断 剧情是否 播过 bool IsPlotHasPlayed() { print(" 检测剧情是否已经播过!!!! " + TalkID); return(GlobalDateControl.IsHasDateByName(TalkID)); }