private void Awake() { if (!useRandomSeed) { Random.InitState(seed); } audio2dController = GetComponent <Audio2dController>(); player.SetGameController(this); ufo.SetGameController(this); menu.SetGameController(this); objectsPool = GetComponent <ObjectsPool>(); if (mainCamera == null) { mainCamera = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <Camera>(); } player.gameObject.SetActive(false); }