public override void EnterMapEvent(BattlePlayerController bp) { if (bp.fadeStepsLeft == 0) { return; } bp.isInEvent = false; //if (!Player.mainPlayer.canSave) //{ // return; //} //Debug.Log("save data at save point"); ExploreManager.Instance.DisableAllInteractivity(); isInSavingData = true; autoDetect.isInSavingData = true; //Player.mainPlayer.savePosition = this.transform.position; //Player.mainPlayer.saveTowards = bp.towards; //bool isInEvent = ExploreManager.Instance.battlePlayerCtr.isInEvent; bp.ForceMoveToAndStopWhenEnconterWithMapEvent(new Vector3(transform.position.x, transform.position.y, 0), delegate { GameManager.Instance.persistDataManager.SaveDataInExplore(delegate { GameManager.Instance.soundManager.PlayAudioClip(CommonData.skillUpgradeAudioName); ExploreManager.Instance.expUICtr.SetUpSingleTextTintHUD("数据已存档"); PlayTriggerAnim(); autoDetect.isInSavingData = false; //ExploreManager.Instance.battlePlayerCtr.isInEvent = isInEvent; }); }); //if (waitPlayerToTargetPosCoroutine != null) //{ // StopCoroutine(waitPlayerToTargetPosCoroutine); //} //waitPlayerToTargetPosCoroutine = WaitPlayerToTargetPos(); //StartCoroutine(waitPlayerToTargetPosCoroutine); }