static int set_SoundOn(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            QFramework.AudioManager    obj  = (QFramework.AudioManager)o;
            UniRx.BoolReactiveProperty arg0 = (UniRx.BoolReactiveProperty)ToLua.CheckObject <UniRx.BoolReactiveProperty>(L, 2);
            obj.SoundOn = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index SoundOn on a nil value"));
        }
    }
    static int get_SoundOn(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            QFramework.AudioManager    obj = (QFramework.AudioManager)o;
            UniRx.BoolReactiveProperty ret = obj.SoundOn;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index SoundOn on a nil value"));
        }
    }
Exemplo n.º 3
0
 public static void OnClick(this IUnirxBind gobjectSub, UniRx.BoolReactiveProperty isClicked)
 {
     gobjectSub.GetGObject().onClick.Add(() => {
         isClicked.Value = true;
     });
 }