Beispiel #1
0
 private void disableRecursively()
 {
     CancelInvoke();
     gameObject.SetActive(false);
     if (childs != null)
     {
         foreach (GameObject child in childs)
         {
             MeshSplitter ms = child.GetComponent <MeshSplitter>();
             if (ms)
             {
                 ms.disableRecursively();
             }
         }
     }
 }
Beispiel #2
0
    private void merge()
    {
        busy = true;

        gameObject.SetActive(true);

        foreach (GameObject child in childs)
        {
            MeshSplitter ms = child.GetComponent <MeshSplitter>();
            if (ms)
            {
                ms.disableRecursively();
            }
        }

        busy = false;
    }