internal PlayingAnimation(AnimationComponent animationComponent, string name) { AnimationComponent = animationComponent; IsPlaying = true; TimeFactor = 1.0f; BlendOperation = AnimationBlendOperation.LinearBlend; Name = name; Clip = animationComponent.Animations[name]; RepeatMode = Clip.RepeatMode; }
internal bool attached; // Is it part of a AnimationComponent.PlayingAnimations collection? internal PlayingAnimation(AnimationComponent animationComponent, string name) { AnimationComponent = animationComponent; IsPlaying = true; TimeFactor = 1.0f; BlendOperation = AnimationBlendOperation.LinearBlend; Name = name; Clip = animationComponent.Animations[name]; RepeatMode = Clip.RepeatMode; }
public override void Initialize() { animationComponent = Entity.Get<AnimationComponent>(); atkState = StateMachine.GetState(typeof(AttackState)); runState = StateMachine.GetState(typeof(RunState)); }
public override void Initialize() { animationComponent = Entity.Get<AnimationComponent>(); atkState = StateMachine.GetState(typeof(AttackState)); idlState = StateMachine.GetState(typeof(IdleState)); baseScaleX = Entity.Transform.Scale.X; }