Add formatting rules
This commit is contained in:
@@ -3,27 +3,43 @@ using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
using UnityEngine.UI;
|
||||
|
||||
/// <summary>
|
||||
/// Handles the display of minigames in the ListMinigameScreen scene
|
||||
/// </summary>
|
||||
public class MinigameItem : MonoBehaviour
|
||||
{
|
||||
// TODO: change to ScriptableObject Minigame;
|
||||
[Header("ScriptableObject Course")]
|
||||
/// <summary>
|
||||
/// Reference to the minigame object
|
||||
/// </summary>
|
||||
public Minigame minigame;
|
||||
|
||||
[Header("UI references")]
|
||||
// Reference to thumbnail object
|
||||
/// <summary>
|
||||
/// UI Reference to the image for displaying the minigame thumbnail
|
||||
/// </summary>
|
||||
public Image thumbnail;
|
||||
// Reference to title object
|
||||
|
||||
/// <summary>
|
||||
/// UI Reference to the gameobject for displaying the minigame title
|
||||
/// </summary>
|
||||
public TMP_Text title;
|
||||
// Refetence to object so correct callback can be trigger on click
|
||||
|
||||
/// <summary>
|
||||
/// UI Reference to the button so the correct callback can be trigger on click
|
||||
/// </summary>
|
||||
public Button button;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Start is called before the first frame update
|
||||
/// </summary>
|
||||
void Start()
|
||||
{
|
||||
// Use public function so that this component can get Instantiated
|
||||
GenerateContent();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// (Re)generate the MinigameItem object and update its appearance
|
||||
/// </summary>
|
||||
public void GenerateContent()
|
||||
{
|
||||
// Set appearance
|
||||
|
||||
Reference in New Issue
Block a user