public LaserSegment(Laser root, bool isHead, EntityType type, bool autoUpdate, int order, Sprite sprt, Animation anim = null) : base(EntityID.PROP, type, 5, 0, autoUpdate, order, sprt, anim, Vector2.zero, new BoxCollider(Vector2.zero, new Vector2(31, 8))) { _root = root; string headExt = isHead ? "_Head" : ""; _animations = new Animation[3] { SpriteBank.GetAnimation($"Laser{headExt}_Small"), SpriteBank.GetAnimation($"Laser{headExt}_Init"), SpriteBank.GetAnimation($"Laser{headExt}_Loop"), }; }
public EnemyPool(int damage, int maxHP, int order, string sprt, string anim, string deathEffect, Vector2 colliderOffset, ColliderBase[] colliders, int initialCount) : base(initialCount) { _damage = damage; _maxHP = maxHP; _order = order; _sprt = SpriteBank.GetSprite(sprt); _anim = SpriteBank.GetAnimation(anim); _collOffset = colliderOffset; _colliders = colliders; _effect = Program.PoolManager.GetPool <EffectPool>(deathEffect); GenerateInitial(initialCount); }
public EffectPool(int order, string anim, int initialCount) : base(initialCount) { _order = order; _anim = SpriteBank.GetAnimation(anim); GenerateInitial(initialCount); }