// ================================================================================
		//  private methods
		// --------------------------------------------------------------------------------

		private void Init()
		{
			_camera = GetComponentInChildren<Camera>();
			_cameraShake = GetComponentInChildren<CameraShake>();
			_transform = transform;

			LevelBoundaries levelBoundaries = FindObjectOfType<LevelBoundaries>();
			SetBoundaries(levelBoundaries);
		}
예제 #2
0
 // use this for finding references in the scene
 protected virtual void LoadLevelData()
 {
     screenShake = FindObjectOfType <CameraShake>();
     levelGrid   = FindObjectOfType <LevelGrid>();
 }
예제 #3
0
		// use this for finding references in the scene
        protected virtual void LoadLevelData()
        {
			screenShake = FindObjectOfType<CameraShake>();
			levelGrid = FindObjectOfType<LevelGrid>();
        }