public void SetImage(int imageIndex, DieJiaControl dieJiaControl) { this.imageIndex = imageIndex; this.dieJiaControl = dieJiaControl; this.baseImagetexture = CommonConfiguration.CreateTexture(CommonConfiguration.baseImages[imageIndex]); this.halfWidth = this.baseImagetexture.width / 2; this.halfHeight = this.baseImagetexture.height / 2; this.InitImage(); }