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