Newer
Older
DungeonShooting / DungeonShooting_Godot / src / game / item / shell / Shell.cs
@小李xl 小李xl on 6 Jun 2023 402 bytes 将老版本的注册物体移入新版本

using Godot;

/// <summary>
/// 弹壳类
/// </summary>
[Tool, GlobalClass]
public partial class Shell : 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();
    }
}