コード例 #1
0
ファイル: UseQuickSlots.cs プロジェクト: wesleywh/GameDevRepo
        public void UpdateQuickSlots()
        {
            InventoryManagerNew im = dontDestroy.currentGameManager.GetComponent <InventoryManagerNew>();

            foreach (InventoryQuickSlot slot in allQuickSlots)
            {
                if (im.HasItem(slot.id) == false)
                {
                    slot.RemoveFromSlot();
                }
            }
        }
コード例 #2
0
 void Start()
 {
     inventoryManager = GetComponent <InventoryManagerNew>();
     guiManager       = GetComponent <GUIManager>();
 }
コード例 #3
0
 void Awake()
 {
     invMg = (invMg == null) ? dontDestroy.currentGameManager.GetComponent <InventoryManagerNew>() : invMg;
 }
コード例 #4
0
 void Start()
 {
     invMg = dontDestroy.currentGameManager.GetComponent <InventoryManagerNew>();
 }