Resolve WES-43 "Minigame framework"
This commit is contained in:
@@ -1,17 +1,20 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using Unity.UI;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class CourseScreenManager : MonoBehaviour
|
||||
{
|
||||
[Header("Course Screen Components")]
|
||||
// Reference to text that displays when there are no recent courses
|
||||
public GameObject noRecentCourses;
|
||||
// Reference to recent-courses-list holder object
|
||||
public Transform recentCourses;
|
||||
// Reference to recommended-courses-list holder object
|
||||
public Transform recommendedCourses;
|
||||
|
||||
[Header("Prefabs")]
|
||||
// CourseItem prefab
|
||||
public GameObject course_item;
|
||||
|
||||
// TODO: change to ScriptableObject;
|
||||
@@ -60,6 +63,7 @@ public class CourseScreenManager : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
// Method used as callback for on click events
|
||||
public void LoadScene(string sceneName)
|
||||
{
|
||||
SceneManager.LoadScene(sceneName);
|
||||
|
||||
Reference in New Issue
Block a user