static public int get__ID(IntPtr l)
 {
     try {
         Core.GameLogic.ActiveObjects.ActiveObject self = (Core.GameLogic.ActiveObjects.ActiveObject)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self._ID);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int UnInit(IntPtr l)
 {
     try {
         Core.GameLogic.ActiveObjects.ActiveObject self = (Core.GameLogic.ActiveObjects.ActiveObject)checkSelf(l);
         self.UnInit();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 public void ProcessMovemont(ActiveObject obj, proto_server.s2c_object_movemont movement)
 {
     if (obj is Player)
     {
         if (obj._GameObject != null && movement.aid != obj._World._LocalPlayerServerID) // 只处理其它人
         {
             //obj._GameObject.transform.position = new Vector3(movement.pos.x / 10, movement.pos.y / 10, movement.pos.z / 10);
             (obj as Player)._Component.SetTargetPos(new Vector3(movement.pos.x / 10, movement.pos.y / 10, movement.pos.z / 10));
             (obj as Player)._Component.SetTargetDir(new Vector3(movement.speed.x, movement.speed.y, movement.speed.z).normalized);
         }
     }
 }
 static public int set__ID(IntPtr l)
 {
     try {
         Core.GameLogic.ActiveObjects.ActiveObject self = (Core.GameLogic.ActiveObjects.ActiveObject)checkSelf(l);
         int v;
         checkType(l, 2, out v);
         self._ID = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int constructor(IntPtr l)
 {
     try {
         Core.GameLogic.ActiveObjects.ActiveObject o;
         Core.GameLogic.World a1;
         checkType(l, 2, out a1);
         o = new Core.GameLogic.ActiveObjects.ActiveObject(a1);
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
        public void ProcesssControlBits(ActiveObject obj, proto_server.s2c_object_control_bits control)
        {
            Debug.Log("ProcesssControlBits......");
            if (obj is Player && (obj as Player)._Component != null)
            {
                uint flagJump = control.flags & (1 << 4);
                Debug.Log(flagJump);

                if (flagJump > 0)
                {
                    (obj as Player)._Component.NeedJump(true);
                }
                else
                {
                    (obj as Player)._Component.NeedJump(false);
                }
            }
        }
 public void ProcessYawPitch(ActiveObject obj, proto_server.s2c_object_yaw_and_picth yawpitch)
 {
     Debug.Log("ProcessYawPitch......");
 }
 public void ProcessProperty(ActiveObject obj, proto_server.s2c_object_properties properties)
 {
     Debug.Log("ProcessProperty......");
 }