33 lines
680 B
C#
33 lines
680 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
public class AnimationHelper : MonoBehaviour {
|
|
|
|
public enum SelectionType{ KEY, IN_TANGENT, OUT_TANGENT };
|
|
public enum TangentMode { SMOOTH, BROKEN };
|
|
public SelectionType selectionType = SelectionType.KEY;
|
|
|
|
[HideInInspector]
|
|
public int selectedKeyIndex;
|
|
[HideInInspector]
|
|
public AnimationClip currentClip;
|
|
[HideInInspector]
|
|
public Animator currentAnimator;
|
|
//[HideInInspector]
|
|
public string currentAnimPath;
|
|
|
|
|
|
|
|
public TangentMode tangentMode = TangentMode.SMOOTH;
|
|
|
|
// Use this for initialization
|
|
void Start () {
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update () {
|
|
|
|
}
|
|
}
|