public void OnDisable() { //Debug.Log("OnDisable"); EditorApplication.playmodeStateChanged -= _HandleOnPlayModeChanged; oscSender1.Dispose(); oscSender1 = null; oscSender2.Dispose(); oscSender2 = null; oscSender3.Dispose(); oscSender3 = null; oscSender4.Dispose(); oscSender4 = null; oscSender5.Dispose(); oscSender5 = null; }
public void OnDisable() { //Debug.Log("OnDisable"); EditorApplication.playmodeStateChanged -= _HandleOnPlayModeChanged; oscTarget1.Dispose(); oscTarget1 = null; oscTarget2.Dispose(); oscTarget2 = null; oscTarget3.Dispose(); oscTarget3 = null; oscTarget4.Dispose(); oscTarget4 = null; oscTarget5.Dispose(); oscTarget5 = null; oscSender1.Dispose(); oscSender1 = null; }