Exemplo n.º 1
0
    private void CreateLobbyItems()
    {
        PositionGrid grid      = new PositionGrid(ItemDistance, RowDistance, transform.position);
        var          tmpLobbys = lobbyLoader.OpenLobbies;

        for (int x = 0; x < NumRowItems; x++)
        {
            for (int y = 0; y < NumRows; y++)
            {
                if (tmpLobbys.Count > (currentStartId + x + y))
                {
                    CreateLobbyCard(grid.GetAtXY(x, y), transform.localScale, transform.localRotation * Quaternion.Euler(90, 180, 0), tmpLobbys[currentStartId + x + y]);
                }
            }
        }
    }
Exemplo n.º 2
0
 public void CreateBlackCard(Assets.Service.Response.Card card)
 {
     theBlackOne = CreateCard(grid.GetAtXY(5, 1), transform.localScale, transform.localRotation * Quaternion.Euler(90, 180, 0), card);
 }