mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-25 06:35:45 +00:00
changing back to gameobject.setactive
This commit is contained in:
parent
91f9e5b9dc
commit
4bf0b83eda
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user