Phazorknight / Cogito

Immersive Sim Template Project for GODOT 4
MIT License
717 stars 81 forks source link

Add automatic leave() for deleted carried objects #118

Closed FailSpy closed 4 months ago

FailSpy commented 4 months ago

Addresses #108

You mentioned you need the reference to be cleaned up in the current implementation, thought I'd throw this patch in that makes it so a Carryable object will call 'leave()' as part of its cleanup on destruction.