示例#1
0
 public CompositeSpriteControllerBaseRestoreData(CompositeSpriteControllerBaseRestoreData baseData)
 {
     currentImageName     = baseData.currentImageName;
     transformRestoreData = baseData.transformRestoreData;
     color       = baseData.color;
     renderQueue = baseData.renderQueue;
 }
示例#2
0
 public CompositeSpriteControllerBaseRestoreData(string currentImageName, Transform transform, Color color,
                                                 int renderQueue)
 {
     this.currentImageName = currentImageName;
     transformRestoreData  = new TransformRestoreData(transform);
     this.color            = color;
     this.renderQueue      = renderQueue;
 }
 public RectTransformRestoreData(RectTransform rect)
 {
     anchor = new Vector4Data(rect.anchorMin, rect.anchorMax);
     offset = new Vector4Data(rect.offsetMin, rect.offsetMax);
 }
示例#4
0
 public TransformRestoreData(Transform transform)
 {
     localPosition = transform.localPosition;
     localRotation = transform.localRotation;
     localScale    = transform.localScale;
 }