Added null check in ButtonClicked event handler
@ -14,9 +14,12 @@ namespace Fungus
public Button targetButton;
public virtual void Start()
{
if (targetButton != null)
targetButton.onClick.AddListener(OnButtonClick);
}
protected virtual void OnButtonClick()