示例#1
0
    public override void _Ready()
    {
        base._Ready();

        sprite = GetNode <AnimatedSprite>("CharacterSprite");
        hitbox = GetNode <Hitbox>("Hitbox");

        sprite.Play("idle");

        hitbox.BindOnDamaged(ApplyDamage);
    }