static int _m_GetArg(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.ClientEventBaseArgs __cl_gen_to_be_invoked = (xc.ClientEventBaseArgs)translator.FastGetCSObj(L, 1); try { { object __cl_gen_ret = __cl_gen_to_be_invoked.GetArg( ); translator.PushAny(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
void OnActorHpChange(xc.ClientEventBaseArgs msg) { if (mUIObject == null) { return; } if (mSelectActorUID == null) { return; } var actor = (Actor)msg.GetArg(); if (actor == null) { GameDebug.LogError("actor == null"); return; } if (mSelectActorUID == actor.UID) { RefreshHpPanel(); } }