Beispiel #1
0
 public int GetStateIndexInCollection(AnimationStateWrapper state)
 {
     for (int i = 0; i < animStates.Count; i++)
     {
         if (animStates[i] == state)
         {
             return(i);
         }
     }
     return(-1);
 }
Beispiel #2
0
 private void OnEnable()
 {
     animationStateWrapper = (AnimationStateWrapper)target;
     currentType           = animationStateWrapper.type;
 }