diff --git a/.idea/.idea.ReisenTasker/.idea/indexLayout.xml b/.idea/.idea.ReisenTasker/.idea/indexLayout.xml deleted file mode 100644 index 7b08163..0000000 --- a/.idea/.idea.ReisenTasker/.idea/indexLayout.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/Assets/Scripts/Microgame/BookSorting.cs b/Assets/Scripts/Microgame/BookSorting.cs new file mode 100644 index 0000000..68bc487 --- /dev/null +++ b/Assets/Scripts/Microgame/BookSorting.cs @@ -0,0 +1,6 @@ +using UnityEngine; + +public class BookSorting : MicroGameHandler +{ + +} diff --git a/Assets/Scripts/Microgame/BookSorting.cs.meta b/Assets/Scripts/Microgame/BookSorting.cs.meta new file mode 100644 index 0000000..a04442b --- /dev/null +++ b/Assets/Scripts/Microgame/BookSorting.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: ec002d7fbf01e52d1b7e386da7f042fe \ No newline at end of file diff --git a/Assets/Scripts/Microgame/MarisaPotionMaker.cs b/Assets/Scripts/Microgame/MarisaPotionMaker.cs index d31956d..9008ddc 100644 --- a/Assets/Scripts/Microgame/MarisaPotionMaker.cs +++ b/Assets/Scripts/Microgame/MarisaPotionMaker.cs @@ -40,6 +40,11 @@ public class MarisaPotionMaker : MicroGameHandler public int currentPotionIndex; [SerializeField] private TextMeshProUGUI potionRecipeTitle; [SerializeField] private TextMeshProUGUI potionRecipeText; + public override void StartGame() + { + base.StartGame(); + StartPotion(allPotions[Random.Range(0, allPotions.Length)]); + } public void StartPotion(MicrogamePotion potionRequested) { diff --git a/Assets/Scripts/Microgame/MicroGameHandler.cs b/Assets/Scripts/Microgame/MicroGameHandler.cs index 074ce25..5757c1b 100644 --- a/Assets/Scripts/Microgame/MicroGameHandler.cs +++ b/Assets/Scripts/Microgame/MicroGameHandler.cs @@ -8,6 +8,12 @@ public class MicroGameHandler : MonoBehaviour public int score; public int minimumScore; public bool loseOnTimeLimit; + + private void Start() + { + StartGame(); + } + private void Update() { currentTime -= Time.deltaTime; @@ -34,4 +40,9 @@ public class MicroGameHandler : MonoBehaviour { } + + public virtual void StartGame() + { + + } }