public void Update(GameTime gameTime) { if (!_isPlay) { return; } CurrentTypeAnimator?.Update(gameTime); }
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); }