예제 #1
0
    private void PlaceShip(GameObject tile)
    {
        shipScript = ships[shipIndex].GetComponent <ShipScript>();
        shipScript.ClearTileList();

        Vector3 newVec = shipScript.GetOffsetVec(tile.transform.position);

        ships[shipIndex].transform.localPosition = newVec;
    }