Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     set = settingsmanager.instance;
     invpanel.GetComponent <InventoryUI>().setupInvUI();
     //PlayerInventory.instance.onItemChangedCallback += invpanel.GetComponent<InventoryUI>().UpdateUI;
     checkpinfo();
 }
Ejemplo n.º 2
0
 // 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);
 }