void Start() { c = Camera.main.GetComponent <CamLook>(); //LOCK CURSOR Cursor.lockState = CursorLockMode.Locked; Cursor.visible = false; }
// Use this for initialization void Start() { halftoneMat.SetFloat("_colorStrength", 0); initText.color = Color.clear; c = Camera.main.GetComponent <CamLook>(); c.enabled = false; }
// Use this for initialization void Start() { player = GameObject.Find("PlayerHandle"); textbox = GameObject.Find("PlayerHandle/GUI/Textbox"); if (player != null) { ec = player.GetComponent <ElementControl> (); cl = player.GetComponentInChildren <CamLook> (); } }
private void hide() { Time.timeScale = preTimeScale; AudioListener.pause = false; foreach (Transform child in this.gameObject.transform) { child.gameObject.SetActive(false); } CamLook comprovant = cam.GetComponent <CamLook>(); Debug.Assert(comprovant != null); if (!accesKilled.killed) { comprovant.FixarCursor(); } }
private void show() { preTimeScale = Time.timeScale; Time.timeScale = 0; AudioListener aux = cam.GetComponent <AudioListener>(); Debug.Assert(aux != null); AudioListener.pause = true; foreach (Transform child in this.gameObject.transform) { child.gameObject.SetActive(true); } CamLook comprovant = cam.GetComponent <CamLook>(); Debug.Assert(comprovant != null); comprovant.DesfixarCursor(); }
// Use this for initialization void Start() { c = Camera.main.GetComponent <CamLook>(); //anim = GetComponentInChildren<Animation>(); }