Esempio n. 1
0
    public static void SetShiftingFormMaterialProperty(Renderer[] renderers, Vector4 shiftingForm)
    {
        int num = 0;

        while (renderers != null && num < renderers.Length)
        {
            Renderer renderer = renderers[num];
            for (int i = 0; i < renderer.materials.Length; i++)
            {
                Material oneMaterial = renderer.materials[i];
                DiplomaticViewportUtilities.SetShiftingFormMaterialProperty(oneMaterial, shiftingForm);
            }
            num++;
        }
    }
Esempio n. 2
0
 public static void SetShiftingFormMaterialProperty(GameObject gameObject, Vector4 shiftingForm)
 {
     Renderer[] componentsInChildren = gameObject.GetComponentsInChildren <Renderer>(true);
     DiplomaticViewportUtilities.SetShiftingFormMaterialProperty(componentsInChildren, shiftingForm);
 }