Hi guys, currently i have a NPC, and when you pressed the button ‘e’, it will pop out a question box and you can click to select the correct answer, but when you move your mouse, your camera will move too right? and my previous partner made a script which only contains this (see below) and it only stops the camera from moving left and right but not up and down.
when the button ‘e’ is pressed, the “LOCKDOWNScr = true” is called but it only locks left and right, but not up and down. i don’t get it, the script is empty but it works only for left and right?
need some help please ~ thanks !
using UnityEngine;
using System.Collections;
public class LockingDown : MonoBehaviour
{
public bool LOCKDOWNScr = false;
// Use this for initialization
void Start ()
{
}
// Update is called once per frame
void Update ()
{
}
}