예제 #1
0
 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;
 }
예제 #2
0
        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;
        }
예제 #3
0
 public override void Initialize()
 {
     animationComponent = Entity.Get<AnimationComponent>();
     atkState = StateMachine.GetState(typeof(AttackState));
     runState = StateMachine.GetState(typeof(RunState));
 }
예제 #4
0
 public override void Initialize()
 {
     animationComponent = Entity.Get<AnimationComponent>();
     atkState = StateMachine.GetState(typeof(AttackState));
     idlState = StateMachine.GetState(typeof(IdleState));
     baseScaleX = Entity.Transform.Scale.X;
 }