Skip to content

Commit

Permalink
Few comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Max-Lovell committed Nov 20, 2024
1 parent ceb92b8 commit ec5501c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
13 changes: 1 addition & 12 deletions Assets/Scripts/Models/Data/Level1/Level1StageData.cs
Original file line number Diff line number Diff line change
@@ -1,27 +1,16 @@
using UnityEngine;

public class Level1StageData: MonoBehaviour
public class Level1StageData
{

// Public
public int CurrentStage { get; private set; } = 1;
public int TotalStages { get; } = 3;
public int CurrentTargetScore { get; set; }
// Private
private static Level1StageData Instance { get; set; }
private int MinTrialsPerStage { get; } = 10;
private int NTrials { get; }

// Construct
private void Awake()
{
if (Instance != null)
{
Destroy(gameObject);
return;
}
Instance = this;
}
public Level1StageData(Metadata metadata, GameConfig gameConfig)
{
NTrials = int.TryParse(metadata.l1n, out int trials) ? trials : 60;
Expand Down
1 change: 1 addition & 0 deletions Assets/Scripts/Views/Animations/UIAnimationController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

public class UIAnimationController : MonoBehaviour
{
// Note this is currently exposed by the GameController but is actually only used in the into sequences - either expand or make local
public IEnumerator FadeIn(Graphic graphic, float duration=0.3f)
{
yield return StartCoroutine(Fade(graphic, 0f, 1f, duration));
Expand Down

0 comments on commit ec5501c

Please sign in to comment.