Here are the examples of the csharp api System.Collections.Generic.List.Add(omniJack) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
19
View Source File : omniPlug.cs
License : Apache License 2.0
Project Creator : googlearchive
License : Apache License 2.0
Project Creator : googlearchive
void updateJackList() {
targetJackList.Clear();
omniJack[] possibleJacks = FindObjectsOfType<omniJack>();
for (int i = 0; i < possibleJacks.Length; i++) {
if (possibleJacks[i].outgoing != outputPlug) {
if (otherPlug.connected == null) {
targetJackList.Add(possibleJacks[i]);
} else if (otherPlug.connected.transform.parent != possibleJacks[i].transform.parent) {
targetJackList.Add(possibleJacks[i]);
}
}
}
}