Hey all,
This is probably something really obvious and Im just being a bit thick but I can not get it to work,
I have a GUI button that has a gameobject attached to the Notify part. This triggers the Function MyClickFunction() and it SHOULD change the bool from false to true but it does not. However the Debug.Log is posting so I know its running the function.
Any ideas? Here is the script
public class ButtonClickTrigger: BaseTrigger
{
public bool _buttonPressed = false;
public void MyClickFunction()
{
_buttonPressed = true;
Debug.Log ("Button Was clicked");
}