Exemplo n.º 1
0
 void Start()
 {
     c = Camera.main.GetComponent <CamLook>();
     //LOCK CURSOR
     Cursor.lockState = CursorLockMode.Locked;
     Cursor.visible   = false;
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     halftoneMat.SetFloat("_colorStrength", 0);
     initText.color = Color.clear;
     c         = Camera.main.GetComponent <CamLook>();
     c.enabled = false;
 }
Exemplo n.º 3
0
 // 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> ();
     }
 }
Exemplo n.º 4
0
    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();
        }
    }
Exemplo n.º 5
0
    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();
    }
Exemplo n.º 6
0
 // Use this for initialization
 void Start()
 {
     c = Camera.main.GetComponent <CamLook>();
     //anim = GetComponentInChildren<Animation>();
 }