示例#1
0
    void PlaceTunnel(Cell cell)
    {
        GameObject go     = Instantiate(instantiatePf, cell.transform.position, Quaternion.identity, pathParent.transform);
        Tunnel     tunnel = go.GetComponent <Tunnel>();

        print(go);
        print(tunnel);
        print(cell);
        print(dir);
        tunnel.Init(cell, dir);
        path.Add(tunnel);
    }