/// <summary> /// Unity OnDisable override function. /// </summary> public void OnDisable() { if (m_tangoApplication != null) { m_tangoApplication.Unregister(this); } }
void Destroy() { if (m_tangoApplication) { m_tangoApplication.Unregister(this); } }
/// <summary> /// Unity destroy function. /// </summary> public void OnDestroy() { if (m_tangoApplication != null) { m_tangoApplication.Unregister(this); } }
/// <summary> /// Clean up when app closes /// </summary> void OnDestroy() { #if UNITY_EDITOR return; #endif base.OnDestroy(); m_tangoApplication.Unregister(this); }
/// <summary> /// Unity callback when the component gets destroyed. /// </summary> public void OnDestroy() { TangoApplication tangoApplication = FindObjectOfType <TangoApplication>(); if (tangoApplication != null) { tangoApplication.Unregister(this); } }
public void OnSetAnchorClick(Text text) { if (done) { done = false; tangoApp.Register(this); text.text = "Set Anchor"; } else { done = true; tangoApp.Unregister(this); text.text = "Retry Anchor"; } }
public void OnDestroy() { for (int i = m_ZomBunnyHoles.Count - 1; i >= 0; i--) { Destroy(m_ZomBunnyHoles[i]); } m_ZomBunnyHoles.Clear(); for (int i = m_ZomBearHoles.Count - 1; i >= 0; i--) { Destroy(m_ZomBearHoles[i]); } m_ZomBearHoles.Clear(); for (int i = m_HellephantHoles.Count - 1; i >= 0; i--) { Destroy(m_HellephantHoles[i]); } m_HellephantHoles.Clear(); m_tangoApplication.Unregister(this); }
public void OnDestroy() { _tangoApplication.Unregister(this); }
void OnDestroy() { app.Unregister(this); }