using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class de : MonoBehaviour {
void Start() {
}
void Update(){
MovementRoate();
}
public Vector3 screenVector;
void MovementRoate()
{
screenVector = Camera.main.WorldToScreenPoint(this.transform.position);
}
}
//错误如下NullReferenceException: Object reference not set to an instance of an object
de.MovementRoate () (at Assets/de.cs:23)
de.Update () (at Assets/de.cs:14)