コード例 #1
0
 public void Update(GameTime gameTime)
 {
     if (!_isPlay)
     {
         return;
     }
     CurrentTypeAnimator?.Update(gameTime);
 }
コード例 #2
0
        protected void InitializeTypeTrigger()
        {
            var triggerValue = GetPropertyValue <TTriggerValue>(TriggerInfo);

            if (!Animations.ContainsKey(triggerValue))
            {
                return;
            }
            var newTypeAnimator = Animations[triggerValue];

            if (newTypeAnimator == CurrentTypeAnimator)
            {
                return;
            }
            CurrentTypeAnimator = newTypeAnimator;
            var propertyValue = GetPropertyValue <TValue>(ValueMember);

            CurrentTypeAnimator.Initialize(propertyValue);
        }