Skip to content

Commit fed2a1d

Browse files
committed
feat: Use built-in debug insteaD'
1 parent 005c4ef commit fed2a1d

File tree

120 files changed

+368
-641
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+368
-641
lines changed

Assets/JCSUnity/Editor/JCSUnity_EditorWindow.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ private static GameObject CreateBasePanel()
550550
var canvas = JCS_Util.FindObjectByType(typeof(JCS_Canvas)) as JCS_Canvas;
551551
if (canvas == null)
552552
{
553-
JCS_Debug.Log("Can't find JCS_Canvas in hierarchy. Plz create canvas before creating new panel.");
553+
Debug.Log("Can't find JCS_Canvas in hierarchy. Plz create canvas before creating new panel.");
554554
return null;
555555
}
556556

@@ -578,7 +578,7 @@ private static GameObject CreateDialoguePanel()
578578
var canvas = JCS_Util.FindObjectByType(typeof(JCS_Canvas)) as JCS_Canvas;
579579
if (canvas == null)
580580
{
581-
JCS_Debug.Log("Can't find JCS_Canvas in hierarchy. Plz create canvas before creating new panel.");
581+
Debug.Log("Can't find JCS_Canvas in hierarchy. Plz create canvas before creating new panel.");
582582
return null;
583583
}
584584

@@ -607,7 +607,7 @@ private static void CreateSlidePanel()
607607

608608
if (canvas == null)
609609
{
610-
JCS_Debug.Log("Can't find JCS_Canvas in hierarchy. Plz create canvas before creating new panel.");
610+
Debug.Log("Can't find JCS_Canvas in hierarchy. Plz create canvas before creating new panel.");
611611
return;
612612
}
613613

@@ -682,7 +682,7 @@ private static GameObject CreateTweenPanel()
682682

683683
if (canvas == null)
684684
{
685-
JCS_Debug.Log("Can't find JCS_Canvas in hierarchy. Plz create canvas before creating new panel.");
685+
Debug.Log("Can't find JCS_Canvas in hierarchy. Plz create canvas before creating new panel.");
686686
return null;
687687
}
688688

@@ -806,7 +806,7 @@ private static GameObject CreateHierarchyObjectUnderCanvas(string settingPath, J
806806
{
807807
if (canvas == null)
808808
{
809-
JCS_Debug.Log("Can't find JCS_Canvas in hierarchy. Plz create canvas before creating new panel.");
809+
Debug.Log("Can't find JCS_Canvas in hierarchy. Plz create canvas before creating new panel.");
810810
return null;
811811
}
812812

Assets/JCSUnity/Scripts/Actions/2D/AI/JCS_2DInitLookByTypeAction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public void LockOnInit(FindMethod method)
148148
#if UNITY_EDITOR
149149
// print out the name.
150150
if (JCS_GameSettings.instance.DEBUG_MODE)
151-
JCS_Debug.PrintName(closestliveObj.transform);
151+
Debug.Log(closestliveObj.transform.name);
152152
#endif
153153
}
154154

Assets/JCSUnity/Scripts/Actions/2D/JCS_2DActiveSkillAction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public void ActiveSkill()
7171
{
7272
if (mSkillAnim == null)
7373
{
74-
JCS_Debug.LogReminder(
74+
Debug.Log(
7575
"Assigning active skill action without animation is not allowed.");
7676

7777
return;

Assets/JCSUnity/Scripts/Actions/2D/JCS_2DSkills.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ protected void SpawnMainAnim1()
177177
{
178178
if (mMainAnim1 == null)
179179
{
180-
JCS_Debug.LogReminder(
180+
Debug.Log(
181181
"Assigning active skill action without animation is not allowed.");
182182

183183
return;
@@ -211,7 +211,7 @@ protected void SpawnMainAnim2()
211211
{
212212
if (mMainAnim2 == null)
213213
{
214-
JCS_Debug.LogReminder(
214+
Debug.Log(
215215
"Assigning active skill action without animation is not allowed.");
216216

217217
return;

Assets/JCSUnity/Scripts/Actions/2D/Shooting/JCS_2DSequenceShootActionNoDetection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,13 @@ public void ShootsInSequence(int hit, Vector3 pos)
140140
{
141141
if (mShootAction.Bullet == null)
142142
{
143-
JCS_Debug.LogReminder("There is no bullet assign to \"JCS_ShootAction\", so we cannot shoot a sequence...");
143+
Debug.Log("There is no bullet assign to \"JCS_ShootAction\", so we cannot shoot a sequence...");
144144
return;
145145
}
146146

147147
if (hit <= 0)
148148
{
149-
JCS_Debug.LogReminder("Can't shoot sequence of bullet with lower than 0 hit...");
149+
Debug.Log("Can't shoot sequence of bullet with lower than 0 hit...");
150150
return;
151151
}
152152

Assets/JCSUnity/Scripts/Actions/2D/Shooting/JCS_SequenceShootAction.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,13 @@ public void Shoots(int hit, Vector3 pos)
142142
{
143143
if (mShootAction.Bullet == null)
144144
{
145-
JCS_Debug.LogReminder("There is no bullet assign to \"JCS_ShootAction\", so we cannot shoot a sequence...");
145+
Debug.Log("There is no bullet assign to `JCS_ShootAction`, so we can't shoot a sequence");
146146
return;
147147
}
148148

149149
if (hit <= 0)
150150
{
151-
JCS_Debug.LogReminder("Can't shoot sequence of bullet with lower than 0 hit...");
151+
Debug.Log("Can't shoot sequence of bullet with lower than 0 hit");
152152
return;
153153
}
154154

@@ -410,19 +410,19 @@ public int[] PreCalculateSequenceDamage(int minDamage, int maxDamage, int hit, i
410410
{
411411
if (minDamage > maxDamage)
412412
{
413-
JCS_Debug.LogError("min damage cannot be higher or equal to the max damage!");
413+
Debug.LogError("min damage cannot be higher or equal to the max damage!");
414414
return null;
415415
}
416416

417417
if (minDamage < 0 || maxDamage < 0)
418418
{
419-
JCS_Debug.LogError("Min or Max damage cannot be lower than 0!");
419+
Debug.LogError("Min or Max damage cannot be lower than 0!");
420420
return null;
421421
}
422422

423423
if (hit <= 0)
424424
{
425-
JCS_Debug.LogError("Hit count should not be equal or lower than 0!");
425+
Debug.LogError("Hit count should not be equal or lower than 0!");
426426
return null;
427427
}
428428

Assets/JCSUnity/Scripts/Actions/JCS_ApplyDamageTextToLiveObjectAction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ private void OnTriggerEnter(Collider other)
233233
mCriticalChance = mAbilityFormat.GetCriticalChance();
234234
}
235235
else {
236-
JCS_Debug.LogReminder("You sure to not using any `JCS_AbilityFormat`?");
236+
Debug.Log("You sure to not using any `JCS_AbilityFormat`?");
237237
}
238238

239239
Vector3 currentPos = liveObject.transform.position + mDamageTextPositionOffset;

Assets/JCSUnity/Scripts/Actions/JCS_DetectArea.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ private void Awake()
3737
mCollider = this.GetComponent<Collider>();
3838

3939
if (mCollider == null)
40-
JCS_Debug.LogError("No collider attached to do the dectect action");
40+
Debug.LogError("No collider attached to do the dectect action");
4141
else
4242
mCollider.enabled = false;
4343
}

Assets/JCSUnity/Scripts/Actions/JCS_DetectAreaAction.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ private void Awake()
4545

4646
if (mDetectCollider.Length == 0)
4747
{
48-
JCS_Debug.LogReminder("No Collider assing for dectetion");
48+
Debug.Log("No Collider assing for dectetion");
4949
}
5050

5151

@@ -54,7 +54,7 @@ private void Awake()
5454

5555
if (mDetectCollider[index] == null)
5656
{
57-
JCS_Debug.LogReminder("No Collider assing for dectetion");
57+
Debug.Log("No Collider assing for dectetion");
5858
continue;
5959
}
6060

Assets/JCSUnity/Scripts/Actions/JCS_HitDamageAction.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ private void DamageLiveObject(JCS_2DLiveObject liveObject)
100100

101101
if (mAbilityFormat == null)
102102
{
103-
JCS_Debug.LogReminder(
104-
"You sure to not using any \"JCS_AbilityFormat\"?");
103+
Debug.Log("You sure to not using any `JCS_AbilityFormat`?");
105104
return;
106105
}
107106

0 commit comments

Comments
 (0)