示例#1
0
 /// <summary>
 /// Unity OnDisable override function.
 /// </summary>
 public void OnDisable()
 {
     if (m_tangoApplication != null)
     {
         m_tangoApplication.Unregister(this);
     }
 }
示例#2
0
 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);
     }
 }
示例#4
0
    /// <summary>
    ///  Clean up when app closes
    /// </summary>
    void OnDestroy()
    {
                #if UNITY_EDITOR
        return;
                #endif

        base.OnDestroy();
        m_tangoApplication.Unregister(this);
    }
示例#5
0
    /// <summary>
    /// Unity callback when the component gets destroyed.
    /// </summary>
    public void OnDestroy()
    {
        TangoApplication tangoApplication = FindObjectOfType <TangoApplication>();

        if (tangoApplication != null)
        {
            tangoApplication.Unregister(this);
        }
    }
示例#6
0
 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";
     }
 }
示例#7
0
    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);
    }
示例#8
0
 public void OnDestroy()
 {
     _tangoApplication.Unregister(this);
 }
示例#9
0
 void OnDestroy()
 {
     app.Unregister(this);
 }