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; } }
// -------------------------------------------------------------------------------------------- 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; } }
// -------------------------------------------------------------------------------------------- public void OnMoveModeChanged(PlayerActor.MoveModeChangedInfo info) { SetMoveModeText(info.currentMode, true); }