Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / activity / prop / buff / BuffPropProp0003.cs
@lijincheng lijincheng on 8 Jul 2023 334 bytes 调整道具架构
  1.  
  2. using Godot;
  3.  
  4. /// <summary>
  5. /// 护盾上限buff, 护盾 + 1
  6. /// </summary>
  7. [Tool]
  8. public partial class BuffPropProp0003 : 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. }