1212
1313namespace JCSUnity
1414{
15-
1615 /// <summary>
1716 /// Basic camera for 2d Games.
1817 /// </summary>
@@ -96,28 +95,29 @@ public class JCS_2DCamera
9695
9796 [ Header ( "** Speed / Friction **" ) ]
9897
99- [ Tooltip ( "" ) ]
98+ [ Tooltip ( "How fast this camera move toward the target. (x-axis) " ) ]
10099 [ SerializeField ]
100+ [ Range ( 0.01f , 10.0f ) ]
101101 private float mFrictionX = 0.6f ;
102102
103- [ Tooltip ( "" ) ]
103+ [ Tooltip ( "How fast this camera move toward the target. (y-axis) " ) ]
104104 [ SerializeField ]
105+ [ Range ( 0.01f , 10.0f ) ]
105106 private float mFrictionY = 0.6f ;
106107
107108
108- //-- Move
109109 [ Header ( "** Scene Setting **" ) ]
110110
111- [ Tooltip ( "" ) ]
111+ [ Tooltip ( "Maxinum this camera can go in x-axis. " ) ]
112112 [ SerializeField ]
113113 private float mMax_X_PositionInScene = float . PositiveInfinity ;
114- [ Tooltip ( "" ) ]
114+ [ Tooltip ( "Mininum this camera can go in x-axis. " ) ]
115115 [ SerializeField ]
116116 private float mMin_X_PositionInScene = float . NegativeInfinity ;
117- [ Tooltip ( "" ) ]
117+ [ Tooltip ( "Maxinum this camera can go in y-axis. " ) ]
118118 [ SerializeField ]
119119 private float mMax_Y_PositionInScene = float . PositiveInfinity ;
120- [ Tooltip ( "" ) ]
120+ [ Tooltip ( "Mininum this camera can go in y-axis. " ) ]
121121 [ SerializeField ]
122122 private float mMin_Y_PositionInScene = float . NegativeInfinity ;
123123
@@ -131,7 +131,11 @@ public class JCS_2DCamera
131131 public bool FreezeX { get { return this . mFreezeX ; } set { this . mFreezeX = value ; } }
132132 public bool FreezeY { get { return this . mFreezeY ; } set { this . mFreezeY = value ; } }
133133 public bool FreezeZ { get { return this . mFreezeZ ; } set { this . mFreezeZ = value ; } }
134- public void SetFollowTarget ( Transform trans ) { this . mTargetTransform = trans ; }
134+
135+ public Transform FollowTarget { get { return this . mTargetTransform ; } set { this . mTargetTransform = value ; } }
136+ public override void SetFollowTarget ( Transform trans ) { this . mTargetTransform = trans ; }
137+ public override Transform GetFollowTarget ( ) { return this . mTargetTransform ; }
138+
135139 public bool GetFollowing ( ) { return this . mFollowing ; }
136140 public void SetFollowing ( bool val ) { this . mFollowing = val ; }
137141 public Transform GetTargetTransform ( ) { return this . mTargetTransform ; }
0 commit comments