// Use this for initialization void Start() { _adsManager = GetComponent <AdsManager>(); _settingsManager = GetComponent <SettingsManager>(); _collectibleManager = GetComponent <CollectibleManager>(); _state = GameState.MainMenu; GUI_mainMenu.gameObject.SetActive(true); GUI_inGame.gameObject.SetActive(false); _camera = Camera.main.GetComponent <CameraFollow> (); _spawnPosition = _camera.transform.position; _spawnPosition.y -= Camera.main.orthographicSize - _playerYOffset; _spawnPosition.z = 0; _adsManager.CreateAdBanner(); for (int i = 0; i < destructors.Length; i++) { destructors [i].Reset += OnReset; } _gameServiceManager = GetComponent <GameServiceManager>(); _gameServiceManager.Init(); _gameServiceManager.SignIn(); GameSettings.sensitivity = PlayerPrefs.GetFloat(Constants.SETTINGS_SENSITIVITY, 1); }