コード例 #1
0
 public PickupSystem(
     Player.Inventory inventory,
     PickupNotification notification)
 {
     _inventory    = inventory;
     _notification = notification;
 }
コード例 #2
0
 public void Subscribe(Player.Inventory inventory)
 {
     inventory.OnSlotChanged += OnInventoryChanged;
 }
コード例 #3
0
ファイル: KeyPickup.cs プロジェクト: uscomics/Old_Gold_Venus
 void Awake()
 {
     player          = GameObject.FindGameObjectWithTag(Tags.player);
     playerInventory = player.GetComponent <Player.Inventory>();
 }     // Awake