예제 #1
0
    public override void _Process(float delta)
    {
        if (right.GetGlobalPosition().x <= (camera.GetGlobalPosition().x + camera.Offset.x))
        {
            QueueFree();

            //DEPRECATED
            //EmitSignal(nameof(PipeDestroyed));
            if (PipeDestroyed != null)
            {
                PipeDestroyed(this, null);
            }
        }
    }