Try this:
using UnityEngine;
using System.Collections;
public class NoRotation : MonoBehaviour {
private Quaternion q;
void Start () {
q = transform.rotation;
}
void Update () {
transform.rotation = q;
}
}
Or you could figure out and fix the null reference error.
↧