Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void SpawnChessFigure(int index, int x, int y)
- {
- GameObject go = Instantiate(chessFigures[index], GetTileCenter(x, y), chessFigures[index].transform.rotation) as GameObject;
- go.transform.SetParent(transform);
- ChessFigurePositions[x, y] = go.GetComponent<ChessFigure>();
- ChessFigurePositions[x, y].SetPosition(x, y);
- activeFigures.Add(go);
- }
Add Comment
Please, Sign In to add comment