File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Assets/JCSUnity/Scripts/Effects Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments