public void SetLipShapeTables(List <LipShapeTable_v2> lipShapeTables)
                {
                    bool valid = true;

                    if (lipShapeTables == null)
                    {
                        valid = false;
                    }
                    else
                    {
                        for (int table = 0; table < lipShapeTables.Count; ++table)
                        {
                            if (lipShapeTables[table].skinnedMeshRenderer == null)
                            {
                                valid = false;
                                break;
                            }
                            for (int shape = 0; shape < lipShapeTables[table].lipShapes.Length; ++shape)
                            {
                                LipShape_v2 lipShape = lipShapeTables[table].lipShapes[shape];
                                if (lipShape > LipShape_v2.Max || lipShape < 0)
                                {
                                    valid = false;
                                    break;
                                }
                            }
                        }
                    }
                    if (valid)
                    {
                        LipShapeTables = lipShapeTables;
                    }
                }
Exemplo n.º 2
0
 public PositiveNegativeShape(LipShape_v2 positiveShape, LipShape_v2 negativeShape, bool steps = false)
 {
     _positiveShape = positiveShape;
     _negativeShape = negativeShape;
     _steps         = steps;
 }
Exemplo n.º 3
0
 public PositiveNegativeShape(LipShape_v2 positiveShape, LipShape_v2 negativeShape)
 {
     PositiveShape = positiveShape;
     NegativeShape = negativeShape;
 }