Button Action Problem
Hi guys (and laydies :p) ,
i am trying to creata a button that will perfom an action in an Augmented reality app. my button is on a camvas wich is a child of an image target (Parrent). the parrent also have a plane that plays a video.
what i wan to to is to play the video onlly if the button is pressed
i have create an sigleton at the begining with a simple bool named PlayButton1 as public with a start value of False
when i press the button i have an script that makes the bool Pressed true and i have attached this script to the button script ONCLick
public void nowplay () { MyGameMaager.instance.PlayButton1 = true; }
and finly i have an if statement on a script attachet to the plane that says that if Playbutton1 = true then play the video
void start () { if (MyGameMaager.instance.PlayButton1 == true) { StartCoroutine(streamVideo(movie1)); MyGameMaager.instance.PlayButton1 = false; } }
the problem is that i get no action when i press the button. Ihave try it and on an void update but nothing also
i need some hel here please
thank a lot