Пример #1
0
 private void Awake()
 {
     _orbitRenderer       = GetComponent <OrbitRenderer>();
     _lineRenderer        = GetComponent <LineRenderer>();
     _spaceCameraMovement = _spaceCamera.GetComponent <CameraMovement>();
     _spaceCameraRange    = _spaceCamera.GetComponent <CameraDistance>();
 }
Пример #2
0
        private void Awake()
        {
            _transform      = transform;
            _cameraDistance = GetComponent <CameraDistance>();

            if (_useJoystic)
            {
                if (_joystick == null)
                {
                    throw new ArgumentNullException("Поле Joystick не установлено!");
                }
                else
                {
                    _joystick = _joystick.GetComponent <Joystick>();
                }
            }
        }
Пример #3
0
 private void Awake()
 {
     _transform      = transform;
     _cameraDistance = GetComponent <CameraDistance>();
     _heightLimiter  = new Vector3(0, _minCameraHeight, 0);
 }