示例#1
0
            private static void OnUpdate(ActionState actionState, ref State state)
            {
                var targetDis = state.totalDis * actionState.interpolatedTime;

                while (targetDis > state.seqEndDis)
                {
                    if (!state.NextSeq())
                    {
                        break;
                    }
                }
                while (targetDis < state.seqStartDis)
                {
                    if (!state.PreSeq())
                    {
                        break;
                    }
                }
                var t     = (targetDis - state.seqStartDis) / (state.seqEndDis - state.seqStartDis);
                var value = ValueUtility.Lerp(state.seqFrom, state.seqTo, t);

                state.property.UnsafeSet(state.target, value);
            }
示例#2
0
 private static void OnUpdate(ActionState actionState, ref State state)
 {
     state.operation.normalizedTime = actionState.normalizedTime;
 }
示例#3
0
            private static void OnUpdate(ActionState actionState, ref State state)
            {
                var value = ValueUtility.Lerp(state.from, state.to, actionState.interpolatedTime);

                state.property.UnsafeSet(state.target, value);
            }
示例#4
0
 private static void OnPreRelease(ActionState actionState, ref State state)
 {
     state.operation.Release();
 }
示例#5
0
 private static void OnPreRelease(ActionState actionState, ref State state)
 {
     state.source.Release();
 }