-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c5b8a03
commit 3d00fc8
Showing
5 changed files
with
859 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
using UnityEngine.UI; | ||
using Valve.VR.InteractionSystem; | ||
|
||
public class PartyModeSwitch : MonoBehaviour { | ||
|
||
public LinearMapping linearMapping; | ||
public Text text; | ||
public bool partying = true; | ||
public GameObject scoreboard; | ||
|
||
// Update is called once per frame | ||
void Update () { | ||
if (linearMapping.value < .5) | ||
{ | ||
text.text = "Party mode!"; | ||
partying = true; | ||
scoreboard.SetActive(true); | ||
} | ||
else | ||
{ | ||
text.text = "Serious mode."; | ||
partying = false; | ||
scoreboard.SetActive(false); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.