upload
This commit is contained in:
parent
00bd872926
commit
bd2b738f7c
@ -46,12 +46,15 @@ namespace SkinHide
|
|||||||
new BotOwnerPatch().Enable();
|
new BotOwnerPatch().Enable();
|
||||||
}
|
}
|
||||||
void Update()
|
void Update()
|
||||||
{
|
{
|
||||||
|
//PlayerModelView Skin Hide
|
||||||
if (PlayerModelView != null && KeyPlayerSkinHide.Value)
|
if (PlayerModelView != null && KeyPlayerSkinHide.Value)
|
||||||
{
|
{
|
||||||
|
//Get PlayerModelView all SkinDress and Dress
|
||||||
PlayerMVSkinDress = PlayerModelView.GetComponentsInChildren<SkinDress>();
|
PlayerMVSkinDress = PlayerModelView.GetComponentsInChildren<SkinDress>();
|
||||||
PlayerMVDress = PlayerModelView.GetComponentsInChildren<Dress>();
|
PlayerMVDress = PlayerModelView.GetComponentsInChildren<Dress>();
|
||||||
|
|
||||||
|
//false SkinDress and Dress GameObject
|
||||||
if (PlayerMVSkinDress != null)
|
if (PlayerMVSkinDress != null)
|
||||||
{
|
{
|
||||||
foreach (SkinDress skindress in PlayerMVSkinDress)
|
foreach (SkinDress skindress in PlayerMVSkinDress)
|
||||||
@ -67,11 +70,14 @@ namespace SkinHide
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//Player Skin Hide
|
||||||
if (Player != null)
|
if (Player != null)
|
||||||
{
|
{
|
||||||
|
//Get Player all SkinDress and Dress
|
||||||
PlayerSkinDress = Player.GetComponentsInChildren<SkinDress>();
|
PlayerSkinDress = Player.GetComponentsInChildren<SkinDress>();
|
||||||
PlayerDress = Player.GetComponentsInChildren<Dress>();
|
PlayerDress = Player.GetComponentsInChildren<Dress>();
|
||||||
|
|
||||||
|
//false SkinDress and Dress GameObject
|
||||||
if (PlayerSkinDress != null)
|
if (PlayerSkinDress != null)
|
||||||
{
|
{
|
||||||
foreach (SkinDress skindress in PlayerSkinDress)
|
foreach (SkinDress skindress in PlayerSkinDress)
|
||||||
@ -87,6 +93,7 @@ namespace SkinHide
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//false or true SkinDress and Dress GameObject
|
||||||
if (PlayerSkinGameObject != null)
|
if (PlayerSkinGameObject != null)
|
||||||
{
|
{
|
||||||
foreach (GameObject skin in PlayerSkinGameObject)
|
foreach (GameObject skin in PlayerSkinGameObject)
|
||||||
@ -97,12 +104,16 @@ namespace SkinHide
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
//Quit Raid Clear GameObject List
|
||||||
PlayerSkinGameObject.Clear();
|
PlayerSkinGameObject.Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Clear List null Bot
|
||||||
Bot.RemoveAll(x => x == null);
|
Bot.RemoveAll(x => x == null);
|
||||||
|
//Bot Skin Hide
|
||||||
if (Bot.Count > 0)
|
if (Bot.Count > 0)
|
||||||
{
|
{
|
||||||
|
//Get Bot all SkinDress and Dress
|
||||||
foreach (GameObject bot in Bot)
|
foreach (GameObject bot in Bot)
|
||||||
{
|
{
|
||||||
BotSkinDress = bot.GetComponentsInChildren<SkinDress>();
|
BotSkinDress = bot.GetComponentsInChildren<SkinDress>();
|
||||||
@ -124,6 +135,7 @@ namespace SkinHide
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//false or true SkinDress and Dress GameObject
|
||||||
if (BotSkinGameObject != null)
|
if (BotSkinGameObject != null)
|
||||||
{
|
{
|
||||||
foreach (GameObject botskin in BotSkinGameObject)
|
foreach (GameObject botskin in BotSkinGameObject)
|
||||||
@ -134,6 +146,7 @@ namespace SkinHide
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
//Quit Raid Clear GameObject List
|
||||||
BotSkinGameObject.Clear();
|
BotSkinGameObject.Clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user