Пример #1
0
        /// <summary>
        /// 进入地图事件
        /// </summary>
        /// <param name="bp">Bp.</param>
        public override void EnterMapEvent(BattlePlayerController bp)
        {
            if (isInMoving)
            {
                RefreshWalkableInfoWhenTriggeredInMoving();
            }

            bp.isInEvent = true;

            // 所有运动中的怪物/npc停止运动【本步结束以后】
            ExploreManager.Instance.MapWalkableEventsStopAction();

            // 自己这只怪物立刻停止运动
            StopMoveImmidiately();

            // 人物停止运动并且原地等待
            bp.StopMoveAndWait();

            // 进入战斗
            ExploreManager.Instance.EnterFight(this.transform);

            MapEventTriggered(false, bp);
        }