summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Test/HitBoxTest.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2020-10-13 10:33:05 +0800
committerchai <chaifix@163.com>2020-10-13 10:33:05 +0800
commitfc6de82e75310b4c007d80753a5f58e6692f4855 (patch)
treee6d8d9226595a6727d43f18a218f53533101a4e0 /Assets/Scripts/Test/HitBoxTest.cs
parent8cd16fb71177bb61a9475284d944bc6aba30740e (diff)
+misc
Diffstat (limited to 'Assets/Scripts/Test/HitBoxTest.cs')
-rw-r--r--Assets/Scripts/Test/HitBoxTest.cs72
1 files changed, 36 insertions, 36 deletions
diff --git a/Assets/Scripts/Test/HitBoxTest.cs b/Assets/Scripts/Test/HitBoxTest.cs
index 57b0d1af..139ec287 100644
--- a/Assets/Scripts/Test/HitBoxTest.cs
+++ b/Assets/Scripts/Test/HitBoxTest.cs
@@ -1,36 +1,36 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-// AABB hitbox
-public class HitBoxTest : MonoBehaviour
-{
- public bool DrawGizmo;
-
- [SerializeField]
- private bool m_IsActive;
-
- [SerializeField]
- private Vector3 m_TopLeft, m_RightBottom;
-
- private void OnDrawGizmos()
- {
- if (!DrawGizmo) return;
- Gizmos.color = Color.green;
- Vector3 topleft = transform.position + m_TopLeft;
- Vector3 rightbottom = transform.position + m_RightBottom;
- Gizmos.DrawCube((topleft + rightbottom) / 2, rightbottom - topleft);
- }
-
- // Start is called before the first frame update
- void Start()
- {
-
- }
-
- // Update is called once per frame
- void Update()
- {
-
- }
-}
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+// AABB hitbox
+public class HitBoxTest : MonoBehaviour
+{
+ public bool DrawGizmo;
+
+ [SerializeField]
+ private bool m_IsActive;
+
+ [SerializeField]
+ private Vector3 m_TopLeft, m_RightBottom;
+
+ private void OnDrawGizmos()
+ {
+ if (!DrawGizmo) return;
+ Gizmos.color = Color.green;
+ Vector3 topleft = transform.position + m_TopLeft;
+ Vector3 rightbottom = transform.position + m_RightBottom;
+ Gizmos.DrawCube((topleft + rightbottom) / 2, rightbottom - topleft);
+ }
+
+ // Start is called before the first frame update
+ void Start()
+ {
+
+ }
+
+ // Update is called once per frame
+ void Update()
+ {
+
+ }
+}