So I wanted to assign my method to button onClick action, and it is possible only if I have methods like test() or test(ina a), but I have a method that looks like that:
public void TurnPageOn(PageType _type) {
if (_type == PageType.None) return;
if (!PageExists(_type)) {
LogWarning("You are trying to turn a page on ["+_type+"] that has not been registered.");
return;
}
Page _page = GetPage(_type);
_page.gameObject.SetActive(true);
_page.Animate(true);
}
so I just don’t see it on the list of methods to choose for button action, how can I assign it then to button action?