// Use this for initialization void Start() { _fpCamera = GetComponentInChildren<Camera>(); _flashlight = GetComponentInChildren<FlashlightBehavior>(); MouseLook.Init(transform, _fpCamera.transform); }
// Use this for initialization void Start() { Debug.Assert(Encounters.Any(x => x.GetComponentInChildren<IEncounter>() == null), "There is an object that does not conform to the \"IEncounter\" interface in the EncounterManager"); _tentPlayer = GetComponentInChildren<TentPlayerBehavior>(); _tentPlayerLight = _tentPlayer.GetComponentInChildren<FlashlightBehavior>(); }