Exemplo n.º 1
0
 /// <summary>
 /// Initializes the list item.
 /// </summary>
 /// <param name="ui">Reference to the main UI controller.</param>
 /// <param name="example">The example to display using this item.</param>
 public void Initialize(UIExamplesHub ui, ExampleProfile example)
 {
     uiController   = ui;
     Example        = example;
     titleText.text = example.Title;
 }
Exemplo n.º 2
0
 /// <inheritdoc />
 public void LoadExample(ExampleProfile example)
 {
     ExamplesUI.SetActive(false);
     SceneManager.LoadSceneAsync(example.SceneName, LoadSceneMode.Additive);
 }