Vector2[] getChessesPosition(ArrayList chessProperties, generatepattern n_pattern) { Vector2[] locations = new Vector2[chessProperties.Count]; switch (n_pattern) { case generatepattern.set_balance: break; case generatepattern.set_defence: break; case generatepattern.set_attack: break; case generatepattern.none: default: break; } return(locations); }
public GameObject[] setChesses(ArrayList chessesProperties, generatepattern n_pattern) { GameObject[] chesses; if (chessesProperties != null && chessesProperties.Count > 0) { chesses = new GameObject[chessesProperties.Count]; return(chesses); } return(null); }