| | |
| | | /// 用户点击锁定, 被攻击锁定攻击者...
|
| | | /// </summary>
|
| | | private GActor m_LockTarget;
|
| | | public GActor LockTarget
|
| | | {
|
| | | public GActor LockTarget {
|
| | | get { return m_LockTarget; }
|
| | | set
|
| | | {
|
| | | set {
|
| | | if (m_LockTarget == value)
|
| | | {
|
| | | return;
|
| | |
| | | public MapArea currentBossArea;
|
| | |
|
| | | private uint _atkBossID;
|
| | | public uint atkBossID
|
| | | {
|
| | | get
|
| | | {
|
| | | public uint atkBossID {
|
| | | get {
|
| | | return _atkBossID;
|
| | | }
|
| | | set
|
| | | {
|
| | | set {
|
| | | if (_atkBossID != value)
|
| | | {
|
| | | _atkBossID = value;
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | public sealed override int NextAction
|
| | | {
|
| | | get
|
| | | {
|
| | | public sealed override int NextAction {
|
| | | get {
|
| | | return base.NextAction;
|
| | | }
|
| | |
|
| | | set
|
| | | {
|
| | | set {
|
| | | base.NextAction = value;
|
| | | }
|
| | | }
|
| | |
|
| | | public sealed override GActor SelectTarget
|
| | | {
|
| | | get
|
| | | {
|
| | | public sealed override GActor SelectTarget {
|
| | | get {
|
| | | return base.SelectTarget;
|
| | | }
|
| | |
|
| | | set
|
| | | {
|
| | | set {
|
| | | if (base.SelectTarget == value)
|
| | | {
|
| | | return;
|
| | |
| | | UserInputHandler.OnCirclePanelTouched += OnCirclePanelTouched;
|
| | | UserInputHandler.OnClickedFloor += OnClickedFloor;
|
| | | HeroBehaviour.OnStopHandupAI += OnStopHandupAI;
|
| | | FuncOpen.Instance.OnFuncStateChangeEvent += OnFunctionOpen;
|
| | |
|
| | | ModelCenter.Instance.GetModel<EquipModel>().appearanceChangeEvent += SwitchSuit;
|
| | |
|
| | |
| | | OnPathFinding -= MapTransferUtility.Instance.OnHeroPathFinding;
|
| | | OnPathFindStop -= MapTransferUtility.Instance.OnHeroStopPathFind;
|
| | | ModelCenter.Instance.GetModel<EquipModel>().appearanceChangeEvent -= SwitchSuit;
|
| | |
|
| | | FuncOpen.Instance.OnFuncStateChangeEvent -= OnFunctionOpen;
|
| | | Behaviour = null;
|
| | | m_LockTarget = null;
|
| | |
|
| | |
| | | _familyName = PlayerDatas.Instance.baseData.FamilyName;
|
| | | }
|
| | |
|
| | | m_HeadUpName.SetPlayerInfo(PlayerDatas.Instance.baseData.realmLevel, _titleID, PlayerDatas.Instance.baseData.PlayerName, _familyName, false);
|
| | | if (FuncOpen.Instance.IsFuncOpen(12))
|
| | | {
|
| | | m_HeadUpName.SetPlayerInfo(PlayerDatas.Instance.baseData.realmLevel, _titleID, PlayerDatas.Instance.baseData.PlayerName, _familyName, false);
|
| | | }
|
| | | else
|
| | | {
|
| | | m_HeadUpName.SetPlayerInfo(999, _titleID, PlayerDatas.Instance.baseData.PlayerName, _familyName, false);
|
| | | }
|
| | |
|
| | | if (StatusMgr.Instance.IsExist(ServerInstID, StatusMgr.Instance.bossBelongBuffID))
|
| | | {
|
| | |
| | | return;
|
| | | }
|
| | | base.SwitchYellowName(on);
|
| | | }
|
| | |
|
| | | public override void SwitchRealm(int _realm)
|
| | | {
|
| | | if (m_HeadUpName == null)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
|
| | | if (FuncOpen.Instance.IsFuncOpen(12))
|
| | | {
|
| | | m_HeadUpName.SetPlayerRealm(_realm);
|
| | | }
|
| | | else
|
| | | {
|
| | | m_HeadUpName.SetPlayerRealm(999);
|
| | | }
|
| | | }
|
| | |
|
| | | private void OnFunctionOpen(int functionId)
|
| | | {
|
| | | if (functionId == 12)
|
| | | {
|
| | | SwitchRealm(PlayerDatas.Instance.baseData.realmLevel);
|
| | | }
|
| | | }
|
| | |
|
| | | public sealed override void Die()
|
| | |
| | | }
|
| | |
|
| | | private HeavenBattleModel m_HeavenBattleModel = null;
|
| | | public HeavenBattleModel heavenBattleModel
|
| | | {
|
| | | get
|
| | | {
|
| | | public HeavenBattleModel heavenBattleModel {
|
| | | get {
|
| | | return m_HeavenBattleModel ?? (m_HeavenBattleModel = ModelCenter.Instance.GetModel<HeavenBattleModel>());
|
| | | }
|
| | | }
|
| | |
| | | #region 地图区域相关处理
|
| | |
|
| | | private int m_CurMapArea = 1 << (int)MapArea.E_Type.Normal;
|
| | | public int CurMapArea
|
| | | {
|
| | | get
|
| | | {
|
| | | public int CurMapArea {
|
| | | get {
|
| | | return m_CurMapArea;
|
| | | }
|
| | | set
|
| | | {
|
| | | set {
|
| | | m_CurMapArea = value;
|
| | | }
|
| | | }
|