internal void DeploySelected(DungeonTile dungeonTile) { if (Mathf.Abs(DeploymentZone.instance.myCoords.x - dungeonTile.xCoord) <= DeploymentZone.instance.range && Mathf.Abs(DeploymentZone.instance.myCoords.z - dungeonTile.zCoord) <= DeploymentZone.instance.range && grid.CanDeployHere(dungeonTile)) { Program.selectedProgram.myTile = dungeonTile; Program.selectedProgram.transform.position = dungeonTile.GetOccupyingCoordinates(Program.selectedProgram.IsFlying(), false); Program.selectedProgram.BeginPlay(); dungeonTile.Occupy(Program.selectedProgram); } else { Debug.Log((Mathf.Abs(DeploymentZone.instance.myCoords.x - dungeonTile.xCoord)).ToString()); Debug.Log((Mathf.Abs(DeploymentZone.instance.myCoords.z - dungeonTile.zCoord)).ToString()); Debug.Log(DeploymentZone.instance.range.ToString()); Debug.Log(grid.CanDeployHere(dungeonTile).ToString()); } }