Skip to content

Commit

Permalink
📌 🎉 and done, reset done #22 #26
Browse files Browse the repository at this point in the history
  • Loading branch information
cutierobot committed Oct 10, 2018
1 parent 0708634 commit 46ed368
Show file tree
Hide file tree
Showing 10 changed files with 282 additions and 125 deletions.
352 changes: 228 additions & 124 deletions DECO3500/Assets/MyData/Scenes/FlyingBrick.unity

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions DECO3500/Assets/MyData/Scripts/TextGaze.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@
public class TextGaze : MonoBehaviour {

public TextMesh text;
private UIHandler uiHandler;

private GameObject launchButton;
public Material blackLaunchButton;

void Start() {
GameObject handlerObject = GameObject.Find("Canvas");
uiHandler = handlerObject.GetComponent<UIHandler>();

launchButton = GameObject.Find("LaunchButton");
}

/*Changes the console text colour when hovered over by reticle*/
public void OnGazeEnter() {
Expand All @@ -17,5 +28,15 @@ public void OnGazeEnter() {
public void OnGazeLeave(){
text.color = new Color(255.0f/255.0f, 255.0f/255.0f, 255.0f/255.0f, 1f);
}

public void clickReset() {
//console tet == "";
//LaunchButton is black
uiHandler.DisplayText.text = "";
launchButton.GetComponent<Renderer>().material = blackLaunchButton;
uiHandler.enterPressed = false;

}

}

Loading

0 comments on commit 46ed368

Please sign in to comment.