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>(); }
public override void Load(ContentManager content) { input = entity.getComponent <InputManager>(); attackPlayer = entity.getComponent <AttackPlayer>(); animator = entity.getComponent <SpriteAnimator <FighterAnimations> >(); if (!playerOne) { transform.flipRenderingHorizontal = true; isFacingLeft = true; animator.Flip(true); attackPlayer.SetAttackDirection(true); } else { transform.flipRenderingHorizontal = false; isFacingLeft = false; animator.Flip(false); attackPlayer.SetAttackDirection(false); } }
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; } } }