Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / activity / prop / buff / BuffProp0003.cs
@小李xl 小李xl on 9 Nov 2023 330 bytes 制作3个道具
  1.  
  2. using Godot;
  3.  
  4. /// <summary>
  5. /// 护盾上限buff, 护盾 + 1
  6. /// </summary>
  7. [Tool]
  8. public partial class BuffProp0003 : BuffProp
  9. {
  10. public override void OnPickUpItem()
  11. {
  12. Master.MaxShield += 1;
  13. Master.Shield += 1;
  14. }
  15.  
  16. public override void OnRemoveItem()
  17. {
  18. Master.MaxShield -= 1;
  19. }
  20. }