diff --git a/Components/InventoryControllerDeployer.cs b/Components/InventoryControllerDeployer.cs index b3d36d0..55d696f 100644 --- a/Components/InventoryControllerDeployer.cs +++ b/Components/InventoryControllerDeployer.cs @@ -4,6 +4,7 @@ using System.Collections; using UnityEngine; using UnityEngine.UI; +using System.Runtime.CompilerServices; namespace UltraFunGuns { @@ -25,89 +26,121 @@ public class InventoryControllerDeployer : MonoBehaviour private void Awake() { - inventoryKey = UltraFunGuns.INVENTORY_KEY.Value; - om = MonoSingleton.Instance; - canvas = GetComponent(); - pauseMenu = transform.Find("PauseMenu").gameObject; - HydraLoader.prefabRegistry.TryGetValue("UFGInventoryUI", out GameObject controllerObject); - HydraLoader.prefabRegistry.TryGetValue("UFGInventoryButton", out GameObject pauseMenuInvButton); - invControllerButton = GameObject.Instantiate(pauseMenuInvButton, canvas).GetComponent