private WeaponAnimTriggerName FindAnimByType(AnimationController.AnimationType type) { foreach (var anim in animations) { if (anim.Type == type) { return(anim); } } return(null); }
private List <WeaponAnimTriggerName> FindAllAnimByType(AnimationController.AnimationType type) { List <WeaponAnimTriggerName> temp = new List <WeaponAnimTriggerName>(); foreach (var anim in animations) { if (anim.Type == type) { temp.Add(anim); } } if (temp.Count > 0) { return(temp); } else { return(null); } }
public virtual void OnAnimEvent(AnimationController.AnimationType animationType) { AnimTypeEvent?.Invoke(animationType); }
public virtual void OnAnimEvent(AnimationController.AnimationType animationType, float value) { AnimTypeEventWithFloat?.Invoke(animationType, value); }