Question by
Yakuzamazter · Oct 07, 2016 at 03:26 PM ·
erroreditorasset
BCE0043 Unexpected Token:fpsMouselook and BCE0044 expecting EOF, Found Mouselook....... How can I fix this???? I really need help plss...
//Here's my variables::
private var savedTimeScale:float;
private fpsMouseLook: MouseLook : MonoBehaviour;
private camMouseLook: MouseLook : MonoBehaviour;
private var firstPersonControllerCamera: MouseLook;
private var mainCamera: MouseLook;
private var pauseFilter;
//The function:
function PauseGame(){
savedTimeScale = Time.timeScale;
Time.timeScale = 0;
if (!fpsMouseLook) fpsMouseLook = GameObject.FindWithTag("Player").GetComponent("MouseLook");
if (!camMouseLook) camMouseLook = Camera.main.GetComponent("MouseLook");
fpsMouseLook.enabled = false;
camMouseLook.enabled = false;
if (pauseFilter){
pauseFilter.enabled = true;
}
}
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612094159im_/https://answers.unity.com/themes/thub/images/avi.jpg)