Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / activity / prop / buff / BuffPropProp0006.cs
@lijincheng lijincheng on 8 Jul 2023 374 bytes 调整道具架构

using Godot;

/// <summary>
/// 延长无敌时间buff, 受伤后无敌时间 + 2s
/// </summary>
[Tool]
public partial class BuffPropProp0006 : BuffProp
{
    public override void OnPickUpItem()
    {
        Master.RoleState.WoundedInvincibleTime += 2f;
    }

    public override void OnRemoveItem()
    {
        Master.RoleState.WoundedInvincibleTime -= 2f;
    }
}