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); }
// 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>(); }
// 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>(); }
// Use this for initialization void Start() { Cursor.visible = false; vrControllerCheck = GetComponent <VRControllerCheck>(); vignetteController = GetComponent <VignetteController>(); }
// Use this for initialization void Start() { myVC = GetComponent <VignetteController>(); myVC.slider = 0; }