non-vr lobby, version fix

This commit is contained in:
joonasp
2022-06-29 14:45:17 +03:00
parent 5774be9822
commit 04baadfad1
1774 changed files with 573069 additions and 1533 deletions

27
Assets/TreasureHunt.cs Normal file
View File

@@ -0,0 +1,27 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
public class TreasureHunt : MonoBehaviour
{
public TMP_Text collectedText;
private int totalCollected;
private void Awake()
{
totalCollected = 0;
}
void Start()
{
collectedText.text = totalCollected.ToString() + "/8 objects collected";
}
public void addTotal()
{
totalCollected++;
collectedText.text = totalCollected.ToString() + "/8 objects collected";
}
}