private CellClue CreateClue(float x, float y, int val) { Vector3 pos = new Vector3(x, y); GameObject cell = Instantiate(GOClue, pos, Quaternion.identity); cell.transform.SetParent(transform); CellClue clue = cell.GetComponent <CellClue>(); clue.SetClue(val); return(clue); }
public void Add(CellClue clue) { clues.Add(clue); }