直接上代码,解释在代码注释中。
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
public class Angle2PI: MonoBehaviour
{
public Transform center;
public Transform arrow;
public Transform sphere;
public TextMesh _piAngleText;
public TextMesh _2piAngleText;
public float radius = 5f;
void LateUpdate()
{