private void PlaceShip(GameObject tile) { shipScript = ships[shipIndex].GetComponent <ShipScript>(); shipScript.ClearTileList(); Vector3 newVec = shipScript.GetOffsetVec(tile.transform.position); ships[shipIndex].transform.localPosition = newVec; }