public override bool PlayCustomAnimation(string name, AnimationWaitingMethod waitingMethod) { base.PlayCustomAnimation(name, waitingMethod); Type type = typeof(State); State st; try { st = (State)Enum.Parse(type, name); } catch { return(false); } ChangeState(st); isPlayingCustomAnimation = true; return(true); }
public virtual bool PlayCustomAnimation(string name, AnimationWaitingMethod method) { this.animationWaitingMethod = method; return(false); }