Exemplo n.º 1
0
    //
    public void InitToken(Material mat, GameObject tokenPref, RoadRouter.Type type)
    {
        GameObject token = Instantiate(tokenPref, transform);

        cellInfo.InitNode(mat, token.GetComponent <Token>());
        cellInfo.Type = type;
    }