//public DepthOfField DoF; void Start() { Floor = GameObject.Find("Floor").GetComponent <Renderer>(); blueLight = GameObject.Find("BlueFlashlight"); blueLight.GetComponent <Light>().intensity = 2; top = GameObject.Find("Flare1"); secondTop = GameObject.Find("Flare2"); middle = GameObject.Find("Flare3"); secondLowest = GameObject.Find("Flare4"); lowest = GameObject.Find("Flare5"); NightVisionLight = GameObject.Find("NightVision"); NightVisionLight.SetActive(false); sonarLight = GameObject.Find("SonarLight"); sonarLight.SetActive(false); hospitalGirl = GameObject.Find("HospitalGirl"); lights = GameObject.FindGameObjectsWithTag("Light"); environ = GameObject.FindGameObjectsWithTag("Environment"); enemies = GameObject.FindGameObjectsWithTag("Enemy"); misc = GameObject.FindGameObjectsWithTag("Other"); items = GameObject.FindGameObjectsWithTag("Item"); flashLight = GetComponent <Flashlight> (); grain = GameObject.Find("Main Camera").GetComponent <NoiseAndGrain> (); grain.enabled = false; echoSpherez = GetComponent <EchoSpherez> (); enemyDamage = GameObject.Find("HospitalGirl").GetComponent <HospitalGirl> (); //DoF = Camera.main.GetComponent<DepthOfField>(); rend = new Renderer[environ.Length]; }
void Awake() { rigid = gameObject.GetComponent <Rigidbody> (); escapeDestination = GameObject.Find("WallR"); BlueFlashlight = GameObject.Find("BlueFlashlight"); NightVision = GameObject.Find("NightVision"); main = GameObject.Find("First Person Controller"); mother = GameObject.Find("Mother"); BehindPlayer = GameObject.Find("BehindPlayer"); leftOfPlayer = GameObject.Find("LeftPlayer"); rightOfPlayer = GameObject.Find("RightPlayer"); cam = GameObject.Find("Main Camera"); seek = false; flash = true; start = true; wait = 3; readyOrNot = 11; startingTalk = 2f; //15 endingSequence = 2; radius = 8; rightPoint = 1000; leftPoint = 1000; nav = GetComponent <NavMeshAgent>(); turnUp = GetComponent <NavMeshAgent>(); collide = GetComponent <SphereCollider> (); mouseLook = (MouseLook)GameObject.Find("Main Camera").GetComponent("MouseLook"); playerLook = (MouseLook)GameObject.Find("First Person Controller").GetComponent("MouseLook"); motor = GameObject.Find("First Person Controller").GetComponent <CharacterMotorC>(); spectrum = GameObject.Find("First Person Controller").GetComponent <SpectrumController> (); playerController = GameObject.Find("First Person Controller").GetComponent <PlayerController>(); echoSpherez = GameObject.Find("First Person Controller").GetComponent <EchoSpherez>(); }
void Start() { thrownTime = Time.realtimeSinceStartup; collect = GameObject.Find("First Person Controller").GetComponent <CollectItem> (); inventory = GameObject.Find("First Person Controller").GetComponent <Inventory> (); echoSpherez = GameObject.Find("First Person Controller").GetComponent <EchoSpherez> (); echoSpherez.isGrounded = true; }