コード例 #1
0
    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);
    }
コード例 #2
0
 public void Add(CellClue clue)
 {
     clues.Add(clue);
 }