Пример #1
0
 protected override void JsonTo(IJsonNode json)
 {
     if (json.Contains("scale"))
     {
         m_ScaleType = ScaleTypeEnum.Scale;
         m_toScale   = JTweenUtils.JsonToVector3(json.GetNode("scale"));
     }
     else if (json.Contains("scaleV"))
     {
         m_ScaleType = ScaleTypeEnum.ScaleV;
         m_toScaleV  = json.GetFloat("scaleV");
     }
     else if (json.Contains("scaleX"))
     {
         m_ScaleType = ScaleTypeEnum.ScaleX;
         m_toScaleX  = json.GetFloat("scaleX");
     }
     else if (json.Contains("scaleY"))
     {
         m_ScaleType = ScaleTypeEnum.ScaleY;
         m_toScaleY  = json.GetFloat("scaleY");
     }
     else if (json.Contains("scaleZ"))
     {
         m_ScaleType = ScaleTypeEnum.ScaleZ;
         m_toScaleZ  = json.GetFloat("scaleZ");
     }
     else
     {
         Debug.LogError(GetType().FullName + " JsonTo MoveType is null");
     } // end if
     Restore();
 }
Пример #2
0
 protected override void JsonTo(JsonData json)
 {
     if (json.Contains("beginScale"))
     {
         BeginScale = JTweenUtils.JsonToVector3(json["beginScale"]);
     }
     // end if
     if (json.Contains("scale"))
     {
         m_ScaleType = ScaleTypeEnum.Scale;
         m_toScale   = JTweenUtils.JsonToVector3(json["scale"]);
     }
     else if (json.Contains("scaleV"))
     {
         m_ScaleType = ScaleTypeEnum.ScaleV;
         m_toScaleV  = (float)json["scaleV"];
     }
     else if (json.Contains("scaleX"))
     {
         m_ScaleType = ScaleTypeEnum.ScaleX;
         m_toScaleX  = (float)json["scaleX"];
     }
     else if (json.Contains("scaleY"))
     {
         m_ScaleType = ScaleTypeEnum.ScaleY;
         m_toScaleY  = (float)json["scaleY"];
     }
     else if (json.Contains("scaleZ"))
     {
         m_ScaleType = ScaleTypeEnum.ScaleZ;
         m_toScaleZ  = (float)json["scaleZ"];
     }
     else
     {
         Debug.LogError(GetType().FullName + " JsonTo MoveType is null");
     } // end if
     Restore();
 }
 /**
  * <summary>Gets the code corresponding to the given value.</summary>
  */
 private static PdfName ToCode(
     ScaleTypeEnum value
     )
 {
     return(ScaleTypeEnumCodes[value]);
 }
Пример #4
0
 public Scale(float x, float y, ScaleTypeEnum type)
 {
     this.x = x; this.y = y; this.type = type;
 }
Пример #5
0
 public Scale(float x, float y)
 {
     this.x = x; this.y = y; this.type = ScaleTypeEnum.NEAREST;
 }
Пример #6
0
 public Scale(float xy, ScaleTypeEnum type)
 {
     x = xy; y = xy; this.type = type;
 }
Пример #7
0
 public Scale(float xy)
 {
     x = xy; y = xy; type = ScaleTypeEnum.NEAREST;
 }
Пример #8
0
 public Scale()
 {
     x = 1.0f; y = 1.0f; type = ScaleTypeEnum.NEAREST;
 }
Пример #9
0
 public Scale(float x, float y, ScaleTypeEnum type)
 {
     this.x = x; this.y = y; this.type = type;
 }
Пример #10
0
 public Scale(float x, float y)
 {
     this.x = x; this.y = y; this.type = ScaleTypeEnum.NEAREST;
 }
Пример #11
0
 public Scale(float xy, ScaleTypeEnum type)
 {
     x = xy; y = xy; this.type = type;
 }
Пример #12
0
 public Scale(float xy)
 {
     x = xy; y = xy; type = ScaleTypeEnum.NEAREST;
 }
Пример #13
0
 public Scale()
 {
     x = 1.0f; y = 1.0f; type = ScaleTypeEnum.NEAREST;
 }