コード例 #1
0
 void Start()
 {
     dropList = GetComponent <DropDownList> ();
     dropList.AddItems(new DropDownListItem("No"));
     dropList.AddItems(new DropDownListItem("Yes"));
     txt.text = (QualitySettings.vSyncCount == 0) ? ("No") : ("Yes");
 }
コード例 #2
0
ファイル: VSync.cs プロジェクト: MarbleGameDev/2DPlatformer
 void Start()
 {
     dropList = GetComponent<DropDownList> ();
         dropList.AddItems (new DropDownListItem ("No"));
         dropList.AddItems (new DropDownListItem ("Yes"));
         txt.text = (QualitySettings.vSyncCount == 0) ? ("No") : ("Yes");
 }
コード例 #3
0
 // Use this for initialization
 void Start()
 {
     dropList = GetComponent<DropDownList> ();
     for (int i = 0; i < QualitySettings.names.Length; i++) {
     DropDownListItem newButton = new DropDownListItem (QualitySettings.names[i]);
     dropList.AddItems (newButton);
     }
     txt.text = QualitySettings.names[QualitySettings.GetQualityLevel()];
 }
コード例 #4
0
 // Use this for initialization
 void Start()
 {
     dropList = GetComponent<DropDownList> ();
     resolutions = Screen.resolutions;
     for (int i = 0; i < resolutions.Length; i++) {
     DropDownListItem newButton = new DropDownListItem (ResToString(resolutions[i]));
     dropList.AddItems (newButton);
     }
     txt.text = ResToString(Screen.currentResolution);
 }
コード例 #5
0
 // Use this for initialization
 void Start()
 {
     dropList = GetComponent <DropDownList> ();
     for (int i = 0; i < QualitySettings.names.Length; i++)
     {
         DropDownListItem newButton = new DropDownListItem(QualitySettings.names[i]);
         dropList.AddItems(newButton);
     }
     txt.text = QualitySettings.names[QualitySettings.GetQualityLevel()];
 }
コード例 #6
0
 // Use this for initialization
 void Start()
 {
     dropList    = GetComponent <DropDownList> ();
     resolutions = Screen.resolutions;
     for (int i = 0; i < resolutions.Length; i++)
     {
         DropDownListItem newButton = new DropDownListItem(ResToString(resolutions[i]));
         dropList.AddItems(newButton);
     }
     txt.text = ResToString(Screen.currentResolution);
 }
コード例 #7
0
 // Use this for initialization
 void Start()
 {
     dropList = GetComponent<DropDownList> ();
     savedCoords = GameObject.Find ("World Data Storage").GetComponent<WorldSavedCoordinates>();
     movement = GameObject.Find ("World Loading Object").GetComponent<WorldMovement> ();
     coords = savedCoords.GetSavedLocations ();
     int numLocations = coords.GetLength (0) - 1;
     //Debug.Log (numLocations);
     for (int i = 0; i <= numLocations; i++) {
         string locationName = savedCoords.GetLocationName(i);
         DropDownListItem newButton = new DropDownListItem (locationName);
         dropList.AddItems (newButton);
     }
 }