Пример #1
0
 public MoveInfo(UnityEngine.CollisionFlags CollisionFlags, UnityEngine.CollisionFlags WorkingCollisionFlags, float WantedHeight, Vector3 BottomMovement, Vector3 TopMovement, CCTotem.PositionPlacement PositionPlacement)
 {
     this.CollisionFlags        = CollisionFlags;
     this.WorkingCollisionFlags = WorkingCollisionFlags;
     this.WantedHeight          = WantedHeight;
     this.BottomMovement        = BottomMovement;
     this.TopMovement           = TopMovement;
     this.PositionPlacement     = PositionPlacement;
 }
Пример #2
0
 static public int Move(IntPtr l)
 {
     try{
         UnityEngine.CharacterController self = (UnityEngine.CharacterController)checkSelf(l);
         UnityEngine.Vector3             a1;
         checkType(l, 2, out a1);
         UnityEngine.CollisionFlags ret = self.Move(a1);
         pushEnum(l, (int)ret);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
Пример #3
0
 public ArkCrossEngine.CollisionFlags Move(ArkCrossEngine.Vector3 motion)
 {
     CrossEngineImpl.CollisionFlags flag = GetImpl <CrossEngineImpl.CharacterController>().Move(Helper.Vec3ToUnity(motion));
     return((ArkCrossEngine.CollisionFlags)(int) flag);
 }