From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Tutorial/Command/XCommandShowSkills.cs | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandShowSkills.cs (limited to 'Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandShowSkills.cs') diff --git a/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandShowSkills.cs b/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandShowSkills.cs new file mode 100644 index 00000000..eb4a36e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandShowSkills.cs @@ -0,0 +1,39 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; + +namespace XMainClient.Tutorial.Command +{ + internal class XCommandShowSkills : XBaseCommand + { + public override bool Execute() + { + bool flag = !string.IsNullOrEmpty(this._cmd.param1); + if (flag) + { + this.Show(int.Parse(this._cmd.param1)); + } + bool flag2 = !string.IsNullOrEmpty(this._cmd.param2); + if (flag2) + { + this.Show(int.Parse(this._cmd.param2)); + } + bool flag3 = !string.IsNullOrEmpty(this._cmd.param3); + if (flag3) + { + this.Show(int.Parse(this._cmd.param3)); + } + base.publicModule(); + return true; + } + + private void Show(int idx) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + DlgBase.singleton.SkillHandler.EnableSkill(idx); + } + } + } +} -- cgit v1.1-26-g67d0