示例#1
0
        static int _g_get_color(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.IColorGear gen_to_be_invoked = (FairyGUI.IColorGear)translator.FastGetCSObj(L, 1);
                translator.PushUnityEngineColor(L, gen_to_be_invoked.color);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
示例#2
0
        static int _s_set_color(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                FairyGUI.IColorGear gen_to_be_invoked = (FairyGUI.IColorGear)translator.FastGetCSObj(L, 1);
                UnityEngine.Color   gen_value; translator.Get(L, 2, out gen_value);
                gen_to_be_invoked.color = gen_value;
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }