示例#1
0
文件: NPCBrain.cs 项目: njelly/Deeep
        protected virtual void OnMoveModeChanged(PlayerActor.MoveModeChangedInfo info)
        {
            switch (info.currentMode)
            {
            case PlayerActor.EMoveMode.FreeMove:
                PlayerActor.Instance.RemoveTakeTacticalTurnListener(OnTakeTacticalTurn);
                break;

            case PlayerActor.EMoveMode.Tactical:
                PlayerActor.Instance.AddTakeTacticalTurnListener(OnTakeTacticalTurn);
                break;
            }
        }
示例#2
0
        // --------------------------------------------------------------------------------------------
        public void OnMoveModeChanged(PlayerActor.MoveModeChangedInfo info)
        {
            switch (info.currentMode)
            {
            case PlayerActor.EMoveMode.Tactical:
                if (!_visible)
                {
                    SetVisible(true);
                }
                break;

            case PlayerActor.EMoveMode.FreeMove:
                if (_sliderAnimation == null)
                {
                    SetVisible(false);
                }
                break;
            }
        }
示例#3
0
 // --------------------------------------------------------------------------------------------
 public void OnMoveModeChanged(PlayerActor.MoveModeChangedInfo info)
 {
     SetMoveModeText(info.currentMode, true);
 }