Exemplo n.º 1
0
 void OnDestroy()
 {
     if (m_logic != null)
     {
         m_logic.Release();
         m_logic = null;
     }
 }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        if (m_logic == null)
        {
            m_logic = new BackgroundLogic();
        }

        m_logic.Initialize(this);
    }