static int _m_IsDestroyed(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try
            {
                UnityEngine.UI.RawImage __cl_gen_to_be_invoked = (UnityEngine.UI.RawImage)translator.FastGetCSObj(L, 1);
                bool isDestroyed = false;
                if (__cl_gen_to_be_invoked != null)
                {
                    isDestroyed = __cl_gen_to_be_invoked.IsDestroyed();
                }
                else
                {
                    isDestroyed = true;
                }
                LuaAPI.lua_pushboolean(L, isDestroyed);

                return(1);
            }
            catch (System.Exception __gen_e)
            {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Ejemplo n.º 2
0
        public void Destroy()
        {
            if (m_textComponent != null)
            {
                if (!m_textComponent.IsDestroyed())
                {
                    GameObject.DestroyImmediate(m_textComponent);
                }
            }

            if (m_iconComponent != null)
            {
                if (!m_iconComponent.IsDestroyed())
                {
                    GameObject.DestroyImmediate(m_iconComponent);
                }
            }
        }