Skip to content

Commit

Permalink
Switching correction
Browse files Browse the repository at this point in the history
  • Loading branch information
sfeichtenschlager committed Jun 10, 2024
1 parent 5e26991 commit d0dcbbb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions EcoHome-VR/Assets/Scripts/ChallangeMode/Playerchall.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ public class Playerchall : MonoBehaviour
// Start is called before the first frame update
void Start()
{
localScoreCounter = 0;
globalScoreCounter = 0;
displayScoreCounter = 0;

displayScore = GameObject.Find("Display Score").GetComponent<TextMeshProUGUI>();
_inputData = GetComponent<InputData>();
}
Expand Down
4 changes: 4 additions & 0 deletions EcoHome-VR/Assets/Scripts/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ public class Player : MonoBehaviour
// Start is called before the first frame update
void Start()
{
localScoreCounter = 0;
globalScoreCounter = 0;
displayScoreCounter = 0;

player = GameObject.Find("Player");
if (GameObject.Find("Display Score")) displayScore = GameObject.Find("Display Score").GetComponent<TextMeshProUGUI>();
_inputData = GetComponent<InputData>();
Expand Down
4 changes: 1 addition & 3 deletions EcoHome-VR/ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,7 @@ PlayerSettings:
16:9: 1
Others: 1
bundleVersion: 0.1.0
preloadedAssets:
- {fileID: -1182288112815722726, guid: 0f201d24f00ac1246aac334b84968490, type: 2}
- {fileID: -2403309386100091321, guid: 47a51866d321e5f4caf8d2a8f8d1ea82, type: 2}
preloadedAssets: []
metroInputSource: 0
wsaTransparentSwapchain: 0
m_HolographicPauseOnTrackingLoss: 1
Expand Down

0 comments on commit d0dcbbb

Please sign in to comment.