Skip to content

Commit 841d5dc

Browse files
committed
Add description about the inpectsor/event trigger system use functions' API.
1 parent 858eb26 commit 841d5dc

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Assets/JCSUnity/Scripts/Effects/JCS_SlideEffect.cs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ private void Start()
220220
// mPanelRoot will be null is the object isn't
221221
// UI game object.
222222
if (mPanelRoot != null)
223-
mDistance = mDistance / mPanelRoot.PanelDeltaWidthRatio;
223+
mDistance /= mPanelRoot.PanelDeltaWidthRatio;
224224

225225
newPos.x += mDistance;
226226
}
@@ -230,7 +230,7 @@ private void Start()
230230
// mPanelRoot will be null is the object isn't
231231
// UI game object.
232232
if (mPanelRoot != null)
233-
mDistance = mDistance / mPanelRoot.PanelDeltaHeightRatio;
233+
mDistance /= mPanelRoot.PanelDeltaHeightRatio;
234234

235235
newPos.y += mDistance;
236236
}
@@ -275,7 +275,9 @@ private void Test()
275275
// Public Functions
276276

277277
/// <summary>
278-
/// Use for inspector. (Active)
278+
/// Call it when is on mouse over.
279+
///
280+
/// Use in inspector for Event Trigger System. (Active)
279281
/// </summary>
280282
public void JCS_OnMouseOver(PointerEventData data)
281283
{
@@ -288,7 +290,9 @@ public void JCS_OnMouseOver()
288290

289291

290292
/// <summary>
291-
/// Use for inspector. (Deactive)
293+
/// Call it when is on mouse exit.
294+
///
295+
/// Use in inspector for Event Trigger System. (Deactive)
292296
/// </summary>
293297
/// <returns></returns>
294298
public void JCS_OnMouseExit(PointerEventData data)

0 commit comments

Comments
 (0)