Exemple #1
0
    public static RootedTile createGameObject(GameObject parent, int r, int c)
    {
        GameObject g = Instantiate(Resources.Load("Rooted")) as GameObject;

        g.transform.SetParent(parent.transform);
        RootedTile rooted = g.GetComponent <RootedTile>();

        rooted.init(r, c);
        return(rooted);
    }