added tutorial, fixed score UI

This commit is contained in:
2024-04-17 09:08:27 +02:00
parent 299d85e236
commit 335905a543
5 changed files with 419 additions and 7 deletions

View File

@@ -0,0 +1,34 @@
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEngine.Experimental.GlobalIllumination;
public class Tutorial : MonoBehaviour
{
float timer = 0;
public float TutorialTime = 7;
public GameObject Darkness;
public GameObject levelUI;
// Start is called before the first frame update
void Start()
{
gameObject.SetActive(true);
Darkness.SetActive(true);
levelUI.SetActive(false);
}
// Update is called once per frame
void Update()
{
timer += Time.deltaTime;
if (timer >= TutorialTime)
{
gameObject.SetActive(false);
Darkness.SetActive(false);
levelUI.SetActive(true);
}
}
}