System.Collections.Generic.List.Add(pauseMenuItem)

Here are the examples of the csharp api System.Collections.Generic.List.Add(pauseMenuItem) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

19 View Source File : pauseMenu.cs
License : Apache License 2.0
Project Creator : googlearchive

void Awake() {
    menuItems = new List<pauseMenuItem>();
    for (int i = 0; i < items.Length; i++) {
      pauseMenuItem temp = items[i].GetComponent<pauseMenuItem>();
      if (temp != null) menuItems.Add(temp);
    }

    menuObject.SetActive(false);
    savePanel.SetActive(false);
  }