예제 #1
0
        private void Start()
        {
            _camera = GetComponentInChildren <Camera>();

            if (_camera == null)
            {
                Debug.LogError("CameraController::No Camera founded");
            }

            _controller = GetComponent <SpaceshipController>();

            if (_controller == null)
            {
                Debug.LogError("CameraController::No Spaceship::Controller founded");
            }
        }
예제 #2
0
        /// <inheritdoc/>
        public override void Init(SpaceshipController owner)
        {
            base.Init(owner);

            FetchWeaponComponents(_cooldownComponent);
        }