コード例 #1
0
    void SetOutlet(List <DungeonSquare> linkables, GameObject outlet, out DungeonSquare sq)
    {
        int outletIndex = Random.Range(0, linkables.Count);

        connectLogic.AttachOutlet(linkables[outletIndex], outlet, squares, out sq);
        if (linkables.Count > 1)
        {
            linkables.RemoveAt(outletIndex);
        }
    }