Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / item / shell / ShellCase.cs
@小李xl 小李xl on 3 Jun 2023 386 bytes 引入Godot表格插件

using Godot;

/// <summary>
/// 弹壳类
/// </summary>
public partial class ShellCase : ActivityObject
{
    public override void OnInit()
    {
        base.OnInit();
        ShadowOffset = new Vector2(0, 1);
        ThrowCollisionSize = new Vector2(5, 5);
    }

    protected override void OnThrowOver()
    {
        EnableBehavior = false;
        Collision.QueueFree();
    }
}