Пример #1
0
        public void Animate()
        {
            if (!_Animated && State != null && State.Animating)
            {
                _Animated = true;

                OnAnimate();

                if (Gump != null)
                {
                    Gump.OnAnimate(this);
                }

                State.Animated();
            }
        }
Пример #2
0
        protected void Animate()
        {
            if (!_Animated)
            {
                _Animated = true;

                if (State != null && State.Animating)
                {
                    OnAnimate();

                    if (Gump != null)
                    {
                        Gump.OnAnimate(this);
                    }

                    State.Animated();
                }
            }
        }