Esempio n. 1
0
        void MoveTilesRPC(Vector2Int[] posList, int targetID)
        {
            Ship target = PhotonNetwork.GetPhotonView(targetID).GetComponent <Ship>();

            foreach (Vector2Int pos in posList)
            {
                Tile tile = tiles[pos];
                DetachTile(tile);
                target.AttachTile(pos.x, pos.y, tile.transform.localEulerAngles.z, tile);
            }
        }