Пример #1
0
        public void CreateNewNode(float timestamp, Vector3 position)
        {
            AnimatedObjectPath.CreateNewNode(timestamp, position);

            var nodeIndex = AnimatedObjectPath.GetNodeIndexAtTime(timestamp);

            OnNodeAdded(nodeIndex);
        }
Пример #2
0
        public void CreateNodeAtTime(float timestamp)
        {
            AnimatedObjectPath.AddNodeAtTime(timestamp);

            var nodeIndex = AnimatedObjectPath.GetNodeIndexAtTime(timestamp);

            OnNodeAdded(nodeIndex);
        }
Пример #3
0
 /// <summary>
 ///     Returns animated object node index at the specified timestamp.
 /// </summary>
 /// <param name="timestamp">Timestamp to search for.</param>
 /// <returns>Node index.</returns>
 public int GetNodeIndexAtTime(float timestamp)
 {
     return(AnimatedObjectPath.GetNodeIndexAtTime(timestamp));
 }