Hello, I'm trying with no result so far to make a state to trigger an "if" statement on a script attached to another object or more specifically to set a float on the script. Here's the example:
I need to make "throttleInput" to be "1f;" with an FSM attached to another object, which would in the given example be equivalent to button touch. 
			if (t.phase != TouchPhase.Ended &&
			    this.throttleButton != null && 
			    this.throttleButton.texture != null &&
			    this.throttleButton.texture.HitTest(t.position)){
				
				throttleInput = 1f;
				
				Color c = this.throttleButton.texture.color;
				c.a = this.throttleButton.alphaButtonDown;
				this.throttleButton.texture.color = c;
			}
Any help will be much appreciated.