//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 void setBoundaryScale(float x, float y) { leftBox.setScale(x, y); rightBox.setScale(x, y); }