void Start() { music = FindObjectOfType <MusicManager>(); FindObjectOfType <Inventory>().StartNewLevel(); inventory = FindObjectOfType <Inventory>(); //player = FindObjectOfType<Player>(); /*startingLocation = GetComponentInChildren<Transform>(); * player.StartNewLevel(startingLocation);*/ if (isSideScroll) { Physics2D.gravity = new Vector2(0, -10); } else if (!isSideScroll) { Physics2D.gravity = new Vector2(0, 0); map = FindObjectOfType <MapController>(); if (map != null) { FindObjectOfType <MapController>().UnlockAllMapsInInventory(); } } if (isMenu) { inventory.DisableUIs(); } else if (!isMenu) { print("Not a menu!"); inventory.EnableUIs(); } if (levelMusic != "") { music.StopMusic(); music.ChangeTrack(levelMusic); } if (ambiantNoise != "") { music.ChangeAmbianceTrackWithoutFade(ambiantNoise); } //FindObjectOfType<GameController>().GiveStartingInventory(); }