Beispiel #1
0
 public static StateChange Anim_FindStateChangeByID(AnimationFrame anim, TR_STATE id)
 {
     return anim.StateChange.FirstOrDefault(x => x.ID == id);
 }
Beispiel #2
0
 public static StateChange Anim_FindStateChangeByAnim(AnimationFrame anim, TR_ANIMATION stateChangeAnim)
 {
     return stateChangeAnim >= 0 ? anim.StateChange.FirstOrDefault(x => x.AnimDispatch.Any(y => y.NextAnim == stateChangeAnim)) : null;
 }