コード例 #1
0
 internal void WakeCamera()
 {
     this.buttonType = ButtonType.Camera;
     buttonRoll      = new CameraButtonRoll();
     redRect.SetControll(this);
     buttonRoll.SetButtonForWake(this);
 }
コード例 #2
0
 internal void WakeBuild(Unit.Building.BuildingType _type)
 {
     this.buttonType = ButtonType.Build;
     buttonRoll      = new BuildButtonRoll(_type);
     this.innerImage = Instantiate(Pattern.Factory.PrefabFactory.Instance.FindPrefab("Controll", "InnerImageForBuildButton")).GetComponent <InnerImage>();
     this.innerImage.transform.SetParent(this.transform);
     this.innerImage.transform.localPosition = new Vector3();
     this.innerImage.transform.SetAsFirstSibling();
     this.imageMask = this.innerImage.ImageMask;
     buttonRoll.SetButtonForWake(this);
 }