Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / activity / prop / buff / BuffProp0014.cs
@小李xl 小李xl on 9 Nov 2023 400 bytes 制作3个道具
  1. using Godot;
  2.  
  3. /// <summary>
  4. /// 道具背包 道具容量+1
  5. /// </summary>
  6. [Tool]
  7. public partial class BuffProp0014 : BuffProp
  8. {
  9. public override void OnPickUpItem()
  10. {
  11. Master.ActivePropsPack.SetCapacity(Master.ActivePropsPack.Capacity + 1);
  12. }
  13.  
  14. public override void OnRemoveItem()
  15. {
  16. Master.ActivePropsPack.SetCapacity(Master.ActivePropsPack.Capacity - 1);
  17. }
  18. }