/// <summary> /// 探测到用户 /// </summary> /// <param name="bp">Bp.</param> public void DetectPlayer(BattlePlayerController bp) { if (bp.fadeStepsLeft > 0) { return; } if (bp.escapeFromFight) { return; } bp.isInEvent = true; if (isInMoving) { RefreshWalkableInfoWhenTriggeredInMoving(); } ExploreManager.Instance.MapWalkableEventsStopAction(); StopMoveImmidiately(); bp.StopMoveAtEndOfCurrentStep(); ExploreManager.Instance.EnterFight(this.transform); MapEventTriggered(false, bp); }
public void ShowConsumablesValidPointTintAround(Consumables consumables) { // Debug.Log ("显示消耗品使用范围提示"); if (battlePlayerCtr.pathPosList.Count > 0) { battlePlayerCtr.StopMoveAtEndOfCurrentStep(); } StartCoroutine("LatelyShowConsumablesValidTints", consumables); }
public override void MapEventTriggered(bool longDealy, BattlePlayerController bp) { 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.StopMoveAtEndOfCurrentStep(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; }); }); //IEnumerator saveHintCoroutine = SaveHint(longDealy ? 0.5f : 0.1f); //StartCoroutine(saveHintCoroutine); }