Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added files via upload #9

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions Button.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,21 @@ public class Button : MonoBehaviour {
public bool step1;
public bool step2;
public bool step3;

void Start (){
button1 = GameObject.Find("Button1");
button2 = GameObject.Find("Button2");
button3 = GameObject.Find("Button3");
button1 = GameObject.Find("Button1").GetComponent<ButtonPress>();
button2 = GameObject.Find("Button2").GetComponent<ButtonPress2>();
button3 = GameObject.Find("Button3").GetComponent<ButtonPress3>();
}
// Update is called once per frame
void Update () {
if ( button1.button1down&& button2.button2down == false && button3.button3down == false) {
step1=true;
}
step1=true;}
if (button2.button2down&&step1) {
step2=true;
}
step2=true;}
if (button3.button3down && step1&&step2==false) {
step1=false;}

if(button3.button3down&&step2){
step3 =true;}}
step3 =true;
this.GetComponent<Animator>().SetBool("open", true);}
}
}
Binary file added redyellowblue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added win.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.