private void AddParticleFX(AnimatorControl p_model) { SkinnedMeshRenderer[] componentsInChildren = p_model.GetComponentsInChildren <SkinnedMeshRenderer>(); foreach (SkinnedMeshRenderer p_renderer in componentsInChildren) { ParticalizeRenderer(p_renderer); } }
private void ToggleSkinRenderers(AnimatorControl p_model) { SkinnedMeshRenderer[] componentsInChildren = p_model.GetComponentsInChildren <SkinnedMeshRenderer>(true); foreach (SkinnedMeshRenderer skinnedMeshRenderer in componentsInChildren) { skinnedMeshRenderer.enabled = !skinnedMeshRenderer.enabled; } }