(Actor actor)
| 97 | } |
| 98 | |
| 99 | private void Find(Actor actor) |
| 100 | { |
| 101 | if (!actor) |
| 102 | return; |
| 103 | |
| 104 | for (int i = 0; i < actor.ScriptsCount; i++) |
| 105 | { |
| 106 | var script = actor.GetScript(i); |
| 107 | if (_isValid(script)) |
| 108 | { |
| 109 | AddItem(new ScriptItemView(script)); |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | for (int i = 0; i < actor.ChildrenCount; i++) |
| 114 | { |
| 115 | Find(actor.GetChild(i)); |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | /// <summary> |
| 120 | /// Shows the popup. |