Use cached material instances
This commit is contained in:
parent
64f57d675d
commit
045f30e4e5
File diff suppressed because it is too large
Load Diff
|
@ -74,9 +74,6 @@ public class ServicesListPopulator : MonoBehaviour
|
||||||
{
|
{
|
||||||
isVisible = !isVisible;
|
isVisible = !isVisible;
|
||||||
|
|
||||||
foreach (Renderer renderer in GetComponentsInChildren<Renderer>())
|
gameObject.SetActive(isVisible);
|
||||||
{
|
|
||||||
renderer.enabled = isVisible;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue