Cancel previously scheduled entity destroy event
cancels a previously scheduled
destroy event of the current entity. You can then schedule this event by returning it as
the output argument when implementing an event action method, such as
Event for cancelling entity destroy.
Cancel the previously scheduled destroy event of the entity in the current event action context.
function [entity,events] = timer(obj,storage,entity,tag) % Cancel the previously scheduled destroy event of the entity in % current event action context. event = obj.cancelDestroy(); end