summaryrefslogtreecommitdiff
path: root/SurvivalTest/Assets/Scripts/Physics/CircleShape.cs
blob: 36265980ab698390eea4f8114bd70c0972b7e075 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[RequireComponent(typeof(TopDownTransform))]
public class CircleShape : ShapeBase
{
	[Tooltip("圆心(相对此节点的偏移)")]
	[SerializeField] private Vector2 m_Centre;
	public Vector2 centre { get { return m_Centre; } set { m_Centre = value; } }

	[Tooltip("半径(TopDown空间下)")]
	[SerializeField] private float m_Radius; 
	public float radius { get { return m_Radius;  } set { m_Radius = value; } }



}