File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Assets/JCSUnity/Scripts/Effects Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -127,8 +127,10 @@ private void DoEffect()
127127
128128 if ( mJCS_2DCamera != null )
129129 {
130- this . mOrigin . x = mJCS_2DCamera . GetTargetTransform ( ) . position . x ;
131- this . mOrigin . y = mJCS_2DCamera . GetTargetTransform ( ) . position . y ;
130+ Transform trans = mJCS_2DCamera . GetTargetTransform ( ) ;
131+
132+ this . mOrigin . x = trans . position . x ;
133+ this . mOrigin . y = trans . position . y ;
132134 }
133135
134136 mTime += JCS_Time . ItTime ( mTimeType ) ;
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ private void FixedUpdate()
112112 break ;
113113 case JCS_Axis . AXIS_Y :
114114 {
115- newVal . y += ( mAmplitude * ( Mathf . Cos ( mTime * mFrequency ) ) ) * dt ;
115+ newVal . y += ( mAmplitude * Mathf . Cos ( mTime * mFrequency ) ) * dt ;
116116 }
117117 break ;
118118 }
You can’t perform that action at this time.
0 commit comments