using System.Collections; using System.Collections.Generic; using UnityEngine; public class DontRotate : MonoBehaviour { private Quaternion originalRot; // Use this for initialization void Start () { originalRot = transform.rotation; } // Update is called once per frame void Update () { transform.rotation = originalRot; } }