예제 #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
파일: HUDMoveMode.cs 프로젝트: njelly/Deeep
 // --------------------------------------------------------------------------------------------
 public void OnMoveModeChanged(PlayerActor.MoveModeChangedInfo info)
 {
     SetMoveModeText(info.currentMode, true);
 }