changing back to gameobject.setactive

This commit is contained in:
Mister_Nebula 2020-08-15 21:39:39 +01:00
parent 91f9e5b9dc
commit 4bf0b83eda

View File

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