void Update() { foreach (var unit in units) { var target = UIDOFEditor.I.avatar.GetTransDOF(unit.bone); ast.euler.y = Mathf.Lerp(ast.euler.y, target.euler.y, unit.weight); } ast.Update(); }
internal void Update(float time) { if (ast == null || ast.transform == null) { return; } ast.pos = Pos(time); ast.euler = Rot(time); ast.Update(); }
void Update() { foreach (var unit in units) { var ava = GetComponentInParent <Avatar>(); var target = ava.GetTransDOF(unit.bone); //var target = UIDOFEditor.I.avatar.GetTransDOF(unit.bone); ast.euler.y = Mathf.Lerp(ast.euler.y, target.euler.y, unit.weight); } ast.Update(); }