Esempio n. 1
0
    /**
     * Creates a new spawnbox with the given letter (in caps, e.g. 'A', 'B', 'C', etc) at this location
     */
    public void SpawnNewBox(char letter)
    {
        Transform box = Instantiate(boxPrefab, transform.position, Quaternion.identity);

        BoxScript script = box.GetComponent <BoxScript>();

        script.SetLetter(letter);
    }