Newer
Older
DungeonShooting / DungeonShooting_Godot / src / test / TestAttackComponent.cs
@小李xl 小李xl on 25 Aug 2022 240 bytes 架构调整

using Godot;

public class TestAttackComponent : Component<TestPlayer>
{
    public override void Process(float delta)
    {
        if (Input.IsActionPressed("fire"))
        {
            GD.Print("点击了开火");
        }
    }
}