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"); } }
/// <inheritdoc/> public override void Init(SpaceshipController owner) { base.Init(owner); FetchWeaponComponents(_cooldownComponent); }