public static void LoadUserInterface() { if (UIManager.Instance == null) { AssetBundleHelper.LoadUIBundle(); UserInterface = Object.Instantiate(AssetBundleHelper.UIPrefab); Object.DontDestroyOnLoad(UserInterface); UserInterface.SetActive(false); UIManager.Instance.Player = PlayerController.Instance.inputController.player; ObjectMovementController.MovementUI = UserInterface.GetComponentInChildren <ObjectPlacementUI>(true); OptionsMenuController.OptionsMenu = UserInterface.GetComponentInChildren <OptionsMenuUI>(true); LoadSavedController.LoadSavedUI = UserInterface.GetComponentInChildren <LoadSavedUI>(true); SaveController.SaveUI = UserInterface.GetComponentInChildren <SaveUI>(true); ObjectSelectionController.ObjectSelection = UserInterface.GetComponentInChildren <ObjectSelectionUI>(true); QuickMenuController.QuickMenu = UserInterface.GetComponentInChildren <QuickMenuUI>(true); ObjectEditController.ObjectEdit = UserInterface.GetComponentInChildren <ObjectEditUI>(true); CustomPass = Object.Instantiate(AssetBundleHelper.CustomPassPrefab); Object.DontDestroyOnLoad(CustomPass); CustomPassVolume = CustomPass.GetComponent <CustomPassVolume>(); } }