Пример #1
0
    //すでに調べた糸かどうか(調べていない場合は検索)
    private void IsUsedConnecter(Connecter connecter, ref List <Connecter> connecters)
    {
        foreach (Connecter c in connecters)
        {
            if (c.gameObject == connecter.gameObject)
            {
                return;
            }
        }
        if (connecter.gameObject.tag == "Tree")
        {
            connecter.GetComponent <Tree>().m_TerritoryRate -= StringDemeritRate;
            connecters.Add(connecter);
            return;
        }

        connecters.Add(connecter);
        StringSearch(connecter, ref connecters);
    }