You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
359 B

  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class DontRotate : MonoBehaviour {
  5. private Quaternion originalRot;
  6. // Use this for initialization
  7. void Start () {
  8. originalRot = transform.rotation;
  9. }
  10. // Update is called once per frame
  11. void Update () {
  12. transform.rotation = originalRot;
  13. }
  14. }