For a button with a script attached to it, how could I call the method that is written in this script?
Eg. The attached script of a button object "Create" below:
var Create = altUnityDriver.FindObject(By.NAME, "Create", enabled:false);
public class ButtonOperation : MonoBehaviour
{
public void GetActive(bool active){...}
}
The code:
var active = Create.CallComponentMethod<bool>("
ButtonOperation ", "GetActive", new[] {""});
won't work. How can I solve that?