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