From bd2b738f7c8a11bd320be2409274122e501a2b46 Mon Sep 17 00:00:00 2001 From: kmyuhkyuk <2451614940@qq.com> Date: Fri, 6 May 2022 16:01:02 +0800 Subject: [PATCH] upload --- SkinHide/SkinHidePlugin.cs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/SkinHide/SkinHidePlugin.cs b/SkinHide/SkinHidePlugin.cs index 6c35fb1..700acba 100644 --- a/SkinHide/SkinHidePlugin.cs +++ b/SkinHide/SkinHidePlugin.cs @@ -46,12 +46,15 @@ namespace SkinHide new BotOwnerPatch().Enable(); } void Update() - { + { + //PlayerModelView Skin Hide if (PlayerModelView != null && KeyPlayerSkinHide.Value) { + //Get PlayerModelView all SkinDress and Dress PlayerMVSkinDress = PlayerModelView.GetComponentsInChildren(); PlayerMVDress = PlayerModelView.GetComponentsInChildren(); + //false SkinDress and Dress GameObject if (PlayerMVSkinDress != null) { foreach (SkinDress skindress in PlayerMVSkinDress) @@ -67,11 +70,14 @@ namespace SkinHide } } } + //Player Skin Hide if (Player != null) { + //Get Player all SkinDress and Dress PlayerSkinDress = Player.GetComponentsInChildren(); PlayerDress = Player.GetComponentsInChildren(); + //false SkinDress and Dress GameObject if (PlayerSkinDress != null) { foreach (SkinDress skindress in PlayerSkinDress) @@ -87,6 +93,7 @@ namespace SkinHide } } + //false or true SkinDress and Dress GameObject if (PlayerSkinGameObject != null) { foreach (GameObject skin in PlayerSkinGameObject) @@ -97,12 +104,16 @@ namespace SkinHide } else { + //Quit Raid Clear GameObject List PlayerSkinGameObject.Clear(); } + //Clear List null Bot Bot.RemoveAll(x => x == null); + //Bot Skin Hide if (Bot.Count > 0) { + //Get Bot all SkinDress and Dress foreach (GameObject bot in Bot) { BotSkinDress = bot.GetComponentsInChildren(); @@ -124,6 +135,7 @@ namespace SkinHide } } + //false or true SkinDress and Dress GameObject if (BotSkinGameObject != null) { foreach (GameObject botskin in BotSkinGameObject) @@ -134,6 +146,7 @@ namespace SkinHide } else { + //Quit Raid Clear GameObject List BotSkinGameObject.Clear(); } }