Example #1
0
    public void SpawnIncant(Vector2 pos)
    {
        GameObject go =
            Instantiate(incantPrefab, map.cells[(int)pos.x, (int)pos.y].transform.position, incantPrefab.transform.rotation, incantRoot);
        Incantation newIncant = go.GetComponent <Incantation>();

        newIncant.setGridPos(pos);
        incantationList.Add(newIncant);
        newIncant.PlayIncantation();
    }