Skip to content

Commit

Permalink
feat: Expose more API
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Aug 27, 2024
1 parent 1522f7a commit 84f97a6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Assets/JCSUnity/Scripts/Effects/Tweener/JCS_ColorTweener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ public class JCS_ColorTweener : JCS_UnityObject
/* Setter & Getter */

public bool Animating { get { return (mEasingR || mEasingG || mEasingB || mEasingA); } }
public Color ProgressionColor { get { return mProgressionColor; } }
public Color ProgressPctColor { get { return mProgressPctColor; } }
public Color TargetColor { get { return mTargetColor; } }
public JCS_DeltaTimeType DeltaTimeType { get { return this.mDeltaTimeType; } set { this.mDeltaTimeType = value; } }
public JCS_TweenType EaseTypeR
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@ public class JCS_TransformTweener : JCS_UnityObject

/* Setter & Getter */

public Tweener TweenerX { get { return this.mTweenerX; } }
public Tweener TweenerY { get { return this.mTweenerY; } }
public Tweener TweenerZ { get { return this.mTweenerZ; } }

public bool IsDoneTweening { get { return this.mIsDoneTweening; } }
public bool DoneTweenX { get { return this.mDoneTweenX; } }
public bool DoneTweenY { get { return this.mDoneTweenY; } }
Expand Down
6 changes: 6 additions & 0 deletions Assets/JCSUnity/Scripts/JCS_UnityObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,9 @@ public bool LocalEnabled
}
}

/// <summary>
/// Return the possible material color.
/// </summary>
private Color GetColor()
{
foreach (string prop in mColorProps)
Expand All @@ -527,6 +530,9 @@ private Color GetColor()
return Color.white;
}

/// <summary>
/// Update the material color.
/// </summary>
private void SetColor(Color val)
{
foreach (string prop in mColorProps)
Expand Down

0 comments on commit 84f97a6

Please sign in to comment.