diff options
author | chai <215380520@qq.com> | 2023-06-27 18:43:09 +0800 |
---|---|---|
committer | chai <215380520@qq.com> | 2023-06-27 18:43:09 +0800 |
commit | 411470e66bcfd9631c7b6f82b0a00e5e1e1b0004 (patch) | |
tree | 9a3d3b453702834eb4ad6a4b7eabb6a7b5422880 /WorldlineKeepers/Assets/Scripts/Physics/FastCircleCollider.cs | |
parent | 3d1e930feed19641f0f386463f4de33385f24c51 (diff) |
+ stage serialize
Diffstat (limited to 'WorldlineKeepers/Assets/Scripts/Physics/FastCircleCollider.cs')
-rw-r--r-- | WorldlineKeepers/Assets/Scripts/Physics/FastCircleCollider.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/WorldlineKeepers/Assets/Scripts/Physics/FastCircleCollider.cs b/WorldlineKeepers/Assets/Scripts/Physics/FastCircleCollider.cs index 5f04a9f..2e67e42 100644 --- a/WorldlineKeepers/Assets/Scripts/Physics/FastCircleCollider.cs +++ b/WorldlineKeepers/Assets/Scripts/Physics/FastCircleCollider.cs @@ -3,13 +3,15 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; -public class FastCircleCollider : MonoBehaviour, IQuadTreeObject +public class FastCircleCollider : FastColliderBase, IQuadTreeObject { [SerializeField] private ColliderType m_Type; [SerializeField] private float m_Radius; [SerializeField] private Vector2 m_Offset; + public ColliderType type { get { return m_Type; } set { m_Type = value; } } + public Vector2 center { get @@ -19,7 +21,7 @@ public class FastCircleCollider : MonoBehaviour, IQuadTreeObject } } - public float radius => m_Radius; + public float radius { get { return m_Radius; } set { m_Radius = value; } } public Vector4 bound { @@ -48,7 +50,7 @@ public class FastCircleCollider : MonoBehaviour, IQuadTreeObject } } - public Vector2 offset => m_Offset; + public Vector2 offset { get { return m_Offset; } set { m_Offset = value; } } public void Awake() { |