Board类:用于控制显示内容
public class Board : MonoBehaviour {
public float SPEED = 0.1f; //上升速度
private Vector3 position;
private float offsetY;
void Start () {
position = transform.position;
offsetY = 0;
}
public void SetText(string text)
{
GetComponent<GUIText>().text = text;
}
void Update () {
//世界坐标转视口