Commit 1fa1ae97 authored by lijin's avatar lijin

散弹枪优化

parent 451e1ae3
...@@ -36,7 +36,7 @@ public class GameMgr : MonoBehaviour ...@@ -36,7 +36,7 @@ public class GameMgr : MonoBehaviour
gray = _gray; gray = _gray;
} }
public static int gunSize = 50; public static int gunSize = 5;
void Update() void Update()
{ {
...@@ -133,7 +133,7 @@ public class GameMgr : MonoBehaviour ...@@ -133,7 +133,7 @@ public class GameMgr : MonoBehaviour
{ {
for (int j = 0; j < gunSize; j++) for (int j = 0; j < gunSize; j++)
{ {
Vector2 temp = new Vector2((int)v.x + i - gunSize / 2, (int)v.y + j - gunSize / 2); Vector2 temp = new Vector2((int)v.x + (i - gunSize / 2) * 5, (int)v.y + (j - gunSize / 2) * 5);
list.Add(temp); list.Add(temp);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment