Add formatting rules
This commit is contained in:
@@ -1,20 +1,29 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
/// <summary>
|
||||
/// ListCourseScreen scene manager
|
||||
/// </summary>
|
||||
public class CourseListManager : MonoBehaviour
|
||||
{
|
||||
[Header("Course list UI components")]
|
||||
// Reference to course-list holder object
|
||||
/// <summary>
|
||||
/// Reference to the course-list container object
|
||||
/// </summary>
|
||||
public Transform courseContainer;
|
||||
|
||||
[Header("Prefabs")]
|
||||
// Prefab of item
|
||||
/// <summary>
|
||||
/// Prefab of the course item object
|
||||
/// </summary>
|
||||
public GameObject courseItemPrefab;
|
||||
|
||||
[Header("Courses")]
|
||||
// Reference to the list of all courses
|
||||
/// <summary>
|
||||
/// Reference to the list of all courses
|
||||
/// </summary>
|
||||
public CourseList courseList;
|
||||
|
||||
/// <summary>
|
||||
/// Start is called before the first frame update
|
||||
/// </summary>
|
||||
void Start()
|
||||
{
|
||||
foreach (Course course in courseList.courses)
|
||||
@@ -28,7 +37,10 @@ public class CourseListManager : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
// Method used as callback for on click events
|
||||
/// <summary>
|
||||
/// Method used as callback for course item onClick events
|
||||
/// </summary>
|
||||
/// <param name="sceneName">The path to the new scene (<c>path == $"Assets/{sceneName}"</c>)</param>
|
||||
public void LoadScene(string sceneName)
|
||||
{
|
||||
SceneManager.LoadScene(sceneName);
|
||||
|
||||
Reference in New Issue
Block a user