Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / activity / prop / buff / BuffPropProp0003.cs
@小李xl 小李xl on 4 Jul 2023 354 bytes 优化相机
  1.  
  2. using Godot;
  3.  
  4. /// <summary>
  5. /// 护盾上限buff, 护盾 + 1
  6. /// </summary>
  7. [Tool]
  8. public partial class BuffPropProp0003 : BuffProp
  9. {
  10. protected override void OnPickUp(Role master)
  11. {
  12. master.MaxShield += 1;
  13. master.Shield += 1;
  14. }
  15.  
  16. protected override void OnRemove(Role master)
  17. {
  18. master.MaxShield -= 1;
  19. }
  20. }