Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / activity / prop / buff / BuffPropProp0004.cs
@lijincheng lijincheng on 8 Jul 2023 365 bytes 调整道具架构
  1.  
  2. using Godot;
  3.  
  4. /// <summary>
  5. /// 护盾恢复时间buff, 恢复时间 - 1.5s
  6. /// </summary>
  7. [Tool]
  8. public partial class BuffPropProp0004 : BuffProp
  9. {
  10. public override void OnPickUpItem()
  11. {
  12. Master.RoleState.ShieldRecoveryTime -= 1.5f;
  13. }
  14.  
  15. public override void OnRemoveItem()
  16. {
  17. Master.RoleState.ShieldRecoveryTime += 1.5f;
  18. }
  19. }