This commit is contained in:
Mister_Nebula 2020-08-15 22:00:50 +01:00
parent 4bf0b83eda
commit 923600bfe2

View File

@ -19,11 +19,20 @@ namespace QSB.Tools
private void Activate()
{
gameObject.SetActive(true);
var renderers = gameObject.GetComponentsInChildren<SkinnedMeshRenderer>();
foreach (var item in renderers)
{
item.enabled = true;
}
}
private void Deactivate()
{
gameObject.SetActive(false);
var renderers = gameObject.GetComponentsInChildren<SkinnedMeshRenderer>();
foreach (var item in renderers)
{
item.enabled = false;
}
}
}
}