protected static void SetBlendAmount(SimBuilder builder, BaseBlend blend, float value) { FacialBlend blend2 = blend as FacialBlend; if (blend2 != null) { builder.SetFacialBlend(blend2.GetKey(), value); } }
public static float GetBlendAmount(SimBuilder builder, BaseBlend blend) { FacialBlend blend2 = blend as FacialBlend; if (blend2 != null) { return(builder.GetFacialBlend(blend2.GetKey())); } return(0); }