Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / activity / prop / buff / Buff0001.cs
@小李xl 小李xl on 28 Jun 2023 520 bytes 调整资源目录结构

using Godot;

/// <summary>
/// 移速 buff, 移速 + 3
/// </summary>
[GlobalClass, Tool]
public partial class Buff0001 : Buff
{
    protected override void OnPickUp(Role master)
    {
        master.RoleState.MoveSpeed += 30;
        master.RoleState.Acceleration += 400;
        master.RoleState.Friction += 300;
    }

    protected override void OnRemove(Role master)
    {
        master.RoleState.MoveSpeed -= 30;
        master.RoleState.Acceleration -= 400;
        master.RoleState.Friction -= 300;
    }
}