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