Exemple #1
0
    private void ClearAllWormholeTex()
    {
        if (m_listOrganModels == null)
        {
            return;
        }

        foreach (GameObject OrganModel in m_listOrganModels)
        {
            Texture tex = GameObjectOperation.GetTexture(OrganModel);

            if (tex.name == "Wormhole Texture")
            {
                GameObjectOperation.ClearTexture(OrganModel);
                GameObject.DestroyObject(tex);
            }
        }
    }