Skip to content
This repository has been archived by the owner on Mar 1, 2021. It is now read-only.

Commit

Permalink
move mode now does not show the thumbnail
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayyy committed Feb 26, 2018
1 parent 7daca4d commit f270f4c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Assets/Scripts/CoasterSpawning.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,16 @@ public class CoasterSpawning : MonoBehaviour {
modeText.GetComponent<TextMesh>().text = "Move Mode";
modeText.GetComponent<Animator>().SetTrigger("fade");

currentThumbnail.SetActive(false);

} else if (Input.GetButtonDown("RightTrackpadClick") && gameController.rightController.GetAxis().y < -0.5) {
//change mode
currentMode = 1;
modeText.GetComponent<TextMesh>().text = "Move Mode";
modeText.GetComponent<Animator>().SetTrigger("fade");

currentThumbnail.SetActive(false);

} else if (Input.GetButtonDown("RightTrackpadClick") && gameController.rightController.GetAxis().x > 0) {
currentCoaster++;

Expand Down Expand Up @@ -140,6 +144,8 @@ public class CoasterSpawning : MonoBehaviour {
modeText.GetComponent<TextMesh>().text = "Place Mode";
modeText.GetComponent<Animator>().SetTrigger("fade");

currentThumbnail.SetActive(true);

} else if (Input.GetButtonDown("RightTrackpadClick") && gameController.rightController.GetAxis().y < -0.5) {

//change mode
Expand All @@ -148,6 +154,8 @@ public class CoasterSpawning : MonoBehaviour {
modeText.GetComponent<TextMesh>().text = "Place Mode";
modeText.GetComponent<Animator>().SetTrigger("fade");

currentThumbnail.SetActive(true);

}
}

Expand Down

0 comments on commit f270f4c

Please sign in to comment.