// Use this for initialization void Start() { set = settingsmanager.instance; invpanel.GetComponent <InventoryUI>().setupInvUI(); //PlayerInventory.instance.onItemChangedCallback += invpanel.GetComponent<InventoryUI>().UpdateUI; checkpinfo(); }
// Use this for initialization void Awake() { if (sm != null) { DestroyImmediate(gameObject); return; } DontDestroyOnLoad(gameObject); sm = this; //layermask = ~layermask; GraphicsRaycaster = Canvas.GetComponent <GraphicRaycaster> (); //print(keybinds.keybinds[(int)KeybindActions.jump].keyCode); }