// ================================================================================ // private methods // -------------------------------------------------------------------------------- private void Init() { _camera = GetComponentInChildren<Camera>(); _cameraShake = GetComponentInChildren<CameraShake>(); _transform = transform; LevelBoundaries levelBoundaries = FindObjectOfType<LevelBoundaries>(); SetBoundaries(levelBoundaries); }
// use this for finding references in the scene protected virtual void LoadLevelData() { screenShake = FindObjectOfType <CameraShake>(); levelGrid = FindObjectOfType <LevelGrid>(); }
// use this for finding references in the scene protected virtual void LoadLevelData() { screenShake = FindObjectOfType<CameraShake>(); levelGrid = FindObjectOfType<LevelGrid>(); }