static public int get_ExecuteDestroyCallbacks(IntPtr l)
 {
     try {
         LBoot.LuaBinderBehaviour self = (LBoot.LuaBinderBehaviour)checkSelf(l);
         pushValue(l, self.ExecuteDestroyCallbacks);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int DetachBinding(IntPtr l)
 {
     try {
         LBoot.LuaBinderBehaviour self = (LBoot.LuaBinderBehaviour)checkSelf(l);
         self.DetachBinding();
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int get_Pooled(IntPtr l)
 {
     try {
         LBoot.LuaBinderBehaviour self = (LBoot.LuaBinderBehaviour)checkSelf(l);
         pushValue(l, self.Pooled);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int ForceExit(IntPtr l)
 {
     try {
         LBoot.LuaBinderBehaviour self = (LBoot.LuaBinderBehaviour)checkSelf(l);
         self.ForceExit();
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int set_Pooled(IntPtr l)
 {
     try {
         LBoot.LuaBinderBehaviour self = (LBoot.LuaBinderBehaviour)checkSelf(l);
         bool v;
         checkType(l, 2, out v);
         self.Pooled = v;
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int Bind(IntPtr l)
 {
     try {
         LBoot.LuaBinderBehaviour self = (LBoot.LuaBinderBehaviour)checkSelf(l);
         SLua.LuaTable            a1;
         checkType(l, 2, out a1);
         self.Bind(a1);
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int set_ExecuteDestroyCallbacks(IntPtr l)
 {
     try {
         LBoot.LuaBinderBehaviour self = (LBoot.LuaBinderBehaviour)checkSelf(l);
         bool v;
         checkType(l, 2, out v);
         self.ExecuteDestroyCallbacks = v;
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 public virtual void ForceExit()
 {
     this.binder = null;
     this._lua   = null;
 }
 void OnDestroy()
 {
     this.binder = null;
     this._lua   = null;
 }
Beispiel #10
0
 virtual protected void Start()
 {
     binder = gameObject.GetComponent <LuaBinderBehaviour>();
 }