void OnDestroy() { Close(); // Forget all mappings. _onAnyMessage.RemoveAllListeners(); foreach (OscMapping mapping in _mappings) { mapping.Clear(); } }
public void Clear() { OscMessageHandler.RemoveAllListeners(); FloatHandler.RemoveAllListeners(); IntHandler.RemoveAllListeners(); StringHandler.RemoveAllListeners(); BoolHandler.RemoveAllListeners(); ColorHandler.RemoveAllListeners(); CharHandler.RemoveAllListeners(); DoubleHandler.RemoveAllListeners(); LongHandler.RemoveAllListeners(); TimeTagHandler.RemoveAllListeners(); MidiHandler.RemoveAllListeners(); BlobHandler.RemoveAllListeners(); ImpulseNullEmptyHandler.RemoveAllListeners(); }