void Start()
 {
     myBDeath = GameObject.Find("VignMasks").GetComponent <VignetteController>();
     myRDeath = GameObject.Find("DeathMasks").GetComponent <VignetteController>();
     EventManager.instance.Register <GE_Air>(LocalHandler);
     EventManager.instance.Register <GE_PreLoadLevel>(PreLoad);
     //Debug.Log("myBDeath found is " + myBDeath);
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     characterController = GetComponent <CharacterController> ();
     originalPosition    = characterController.transform.position;
     // Ignore collision with clipboard.
     Physics.IgnoreCollision(GameObject.FindGameObjectWithTag("Clipboard").GetComponent <Collider> (),
                             characterController.GetComponent <Collider> ());
     vignetteController = GetComponent <VignetteController>();
 }
Exemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        levelLabel = GameObject.Find("Level Label");

        if (levelLabel != null)
        {
            levelLabel.GetComponent <Text>().text = LevelManager.instance.GetCurrentSceneName().Replace('_', ' ');
        }

        pauseMenu.SetActive(false);
        audioSource = GetComponent <AudioSource>();
        player      = GameObject.FindObjectOfType <Player>();
        vignette    = GameObject.FindObjectOfType <VignetteController>();
    }
Exemplo n.º 4
0
 // Use this for initialization
 void Start()
 {
     Cursor.visible     = false;
     vrControllerCheck  = GetComponent <VRControllerCheck>();
     vignetteController = GetComponent <VignetteController>();
 }
Exemplo n.º 5
0
 // Use this for initialization
 void Start()
 {
     myVC        = GetComponent <VignetteController>();
     myVC.slider = 0;
 }