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>(); }
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; } } }