Exemple #1
0
 public override void Load(ContentManager content)
 {
     spriteAnimator = entity.getComponent <SpriteAnimator <FighterAnimations> >();
     input          = entity.getComponent <InputManager>();
     state          = entity.getComponent <FighterStateHandler>();
     groundIcon     = content.Load <Texture2D>("square");
 }
Exemple #2
0
 public override void Load(ContentManager content)
 {
     playerMovement = entity.getComponent <PlayerMovement>();
     animator       = entity.getComponent <SpriteAnimator <FighterAnimations> >();
     superMeter     = entity.getComponent <SuperMeter>();
     playerSound    = entity.getComponent <FighterSound>();
     state          = entity.getComponent <FighterStateHandler>();
 }
Exemple #3
0
 public override void Load(ContentManager content)
 {
     attackPlayer   = entity.getComponent <AttackPlayer>();
     animator       = entity.getComponent <SpriteAnimator <FighterAnimations> >();
     playerMovement = entity.getComponent <PlayerMovement>();
     health         = entity.getComponent <Health>();
     state          = entity.getComponent <FighterStateHandler>();
 }
Exemple #4
0
        public override void Load(ContentManager content)
        {
            superMeter    = entity.getComponent <SuperMeter>();
            animator      = entity.getComponent <SpriteAnimator <FighterAnimations> >();
            attackPlayer  = entity.getComponent <AttackPlayer>();
            actionManager = entity.getComponent <ActionManager>();
            state         = entity.getComponent <FighterStateHandler>();
            health        = entity.getComponent <Health>();


            hurtboxTexture = content.Load <Texture2D>("square");

            foreach (ObjectPool h in MasterObjectContainer.hitSparkHolder.getComponents <ObjectPool>())
            {
                if (h.type == HitSpark.light)
                {
                    lightHitSparks = h;
                }
                else if (h.type == HitSpark.medium)
                {
                    mediumHitSparks = h;
                }
                else if (h.type == HitSpark.heavy)
                {
                    heavyHitSparks = h;
                }
                else if (h.type == HitSpark.special)
                {
                    specialHitSparks = h;
                }
                else if (h.type == HitSpark.block)
                {
                    blockHitSparks = h;
                }
            }
        }
Exemple #5
0
        public override void Load(ContentManager content)
        {
            state = entity.getComponent <FighterStateHandler>();

            AdjustBar();
        }
Exemple #6
0
 public override void Load(ContentManager content)
 {
     animator = entity.getComponent <SpriteAnimator <FighterAnimations> >();
     state    = entity.getComponent <FighterStateHandler>();
 }