void CreatSphereMesh(Vector3 position) { MeshFilter meshFilter = GetMeshComponent(); meshFilter.transform.position = position; meshFilter.mesh = SphereMesh.CreateSphere(0.05f, 20, 20, Color.red); }
void CreatSphereMesh() { MeshFilter meshFilter = GetMeshComponent(); meshFilter.transform.position = GetMousePoint(); meshFilter.mesh = SphereMesh.CreateSphere(0.05f, 20, 20, Color.red); }