using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Cshaper2gouzhao : MonoBehaviour {
// Use this for initialization
void Start () {
Vector3 Vector3 = new Vector3(1,1,1);
}
// Update is called once per frame
void Update () {
}
}
class MyClass //构造函数 当我们使用new关键字创建类的时候,就会调用构造方法
{
//private float x, y, z;
public void Vector3(float x, float y, float z)
{
this.x = x;
this.y = y;
this.z = z;
}
private float x, y, z, length;
}