public Pawn(PawnColor color, PawnType type) : base("MasterMindPawn") { _effect = new Particle.ParticleSystem("light"); _effect.SetLifeTime(10, 20); _effect.SetParent(this.EntityId); _effect.SetSize(0.2f, 0.2f); _effect.SetSpread(Helpers.PhysicsAndPositions.PI * 2); _effect.SetRandomSpeed(true, 0.05f); SetPawnColor(color); SetPawnType(type); SetTexture("pawn"); Selected = false; }
public Pawn(PawnColor color, PawnType type) : base("MasterMindPawn") { _effect = new Particle.ParticleSystem("light"); _effect.SetLifeTime(10, 20); _effect.SetParent(this.EntityId); _effect.SetSize(0.2f, 0.2f); _effect.SetSpread(Helpers.PhysicsAndPositions.PI * 2); _effect.SetRandomSpeed(true, 0.05f); SetPawnColor(color); SetPawnType(type); SetTexture("pawn"); Selected = false; }