public void GetFloorIndex(out int i, out int j, Vector2 point) { for (i = 0; i < floorBlocks.xSize; ++i) { for (j = 0; j < floorBlocks.ySize; ++j) { if (Vector2.SqrMagnitude(DragSelectM.Vec3ToVec2(floorBlocks.GetItem(i, j).transform.position) - point) < .8f) { return; } } } i = -1; j = -1; }
void Awake() { self = this; }