Пример #1
0
        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);
        }
Пример #2
0
 public virtual bool PlayCustomAnimation(string name, AnimationWaitingMethod method)
 {
     this.animationWaitingMethod = method;
     return(false);
 }