//col observers public Player(GameObject gameObject) : base(gameObject) { Scale t = SizeFactory.getFactory.boundaryScale; this.leftBox = new PlayerBoundaryBoxLeft(this, ProxySpriteCollisionFactory.proxy); leftBox.setScale(t.colWidth, t.colHeight); this.rightBox = new PlayerBoundaryBoxRight(this, ProxySpriteCollisionFactory.proxy); rightBox.setScale(t.colWidth, t.colHeight); gameObject.setScale(SizeFactory.getFactory.playerScale.spriteWidth, SizeFactory.getFactory.playerScale.spriteHeight); offset = SizeFactory.getFactory.playerScale.spriteWidth; }
public Player(GameObject gameObject, PlayerBoundaryBoxLeft leftBox, PlayerBoundaryBoxRight rightBox) : base(gameObject) { this.leftBox = leftBox; this.rightBox = rightBox; }