123456789101112131415161718192021222324 |
- using Blue;
- /// <summary>
- /// 小地图开关设置命令
- /// </summary>
- public class MinMapGetSetCommand : ICommand
- {
- private int minMap =2;
- public MinMapGetSetCommand()
- {
- }
- public MinMapGetSetCommand(int minMap)
- {
- this.minMap = minMap;
- }
- public void OnExcute()
- {
- if(minMap == 2)
- this.GetService<IMinMapService>().Get();
- else
- this.GetService<IMinMapService>().setMinMap.Value =minMap;
- }
- }
|