Example #1
0
 /// <summary>
 /// 压弯弧度变化
 /// </summary>
 /// <param name="progress"></param>
 public void ChangeCurve(float progress)
 {
     progress = Mathf.Clamp01(progress);
     handleData.RefleshHandPoint(progress);
     MeshUtility.CurveMeshStruct(handleData, _meshStructStatic, ref _meshStruct);
     SetMeshStructToMesh();
     ChangeTexture(Mathf.FloorToInt(textures.Count * progress));
 }