Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / activity / prop / buff / MoveSpeedBuff.cs
@小李xl 小李xl on 26 Jun 2023 339 bytes 移速道具

using Godot;

/// <summary>
/// 移速 buff
/// </summary>
[GlobalClass, Tool]
public partial class MoveSpeedBuff : Buff
{
    protected override void OnPickUp(Role master)
    {
        master.RoleState.MoveSpeed += 100;
    }

    protected override void OnRemove(Role master)
    {
        master.RoleState.MoveSpeed -= 100;
    }
}