Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / activity / prop / buff / BuffProp0006.cs
@小李xl 小李xl on 13 Mar 2024 374 bytes buff系统重构中

using Godot;

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

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