fixed threepeater shooting wrong lane
This commit is contained in:
parent
07f8d589c2
commit
0ead282209
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ public partial class ThreepeaterShooter : Shooter
|
||||||
{
|
{
|
||||||
for(int i = -1; i <= 1; i++)
|
for(int i = -1; i <= 1; i++)
|
||||||
{
|
{
|
||||||
if ((int)GetParent<Node2D>().GlobalPosition.Y/Utility.TileHeight+i < 0 || (int)GetParent<Node2D>().GlobalPosition.Y/Utility.TileHeight+i > Utility.LineCount)
|
if (GetParent<Node2D>().GlobalPosition.Y+i*Utility.TileHeight >= Utility.RightFieldBoundary.Y || GetParent<Node2D>().GlobalPosition.Y+i*Utility.TileHeight <= Utility.LeftFieldBoundary.Y)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
var instance = _projectile.Instantiate<Node2D>();
|
var instance = _projectile.Instantiate<Node2D>();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue