Browse Source

散弹枪

greg 4 years ago
parent
commit
a7adffa218

+ 1 - 1
assets/resources/configs/Weapons.json

@@ -56,7 +56,7 @@
             "id":2,
             "name":"散弹枪",
             "prefab":"d3d/weapons/Weapon002",
-            "fireType":1,
+            "fireType":0,
             "handFireAnimation":"ShotgunFire",
             "handFireAnimationSpeed":1,
             "fireAnimationEvents":

+ 2 - 2
assets/scripts/games/ui/fightings/GameController.ts

@@ -236,9 +236,9 @@ export class GameController extends EventDispatcher{
 
     private monsterSortFunc(a:MonsterBase,b:MonsterBase):number{
         if(a.node.position.z>b.node.position.z){
-            return 1;
-        }else if(a.node.position.z<b.node.position.z){
             return -1;
+        }else if(a.node.position.z<b.node.position.z){
+            return 1;
         }
         return 0;
     }