Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class OnClickBtnScript : MonoBehaviour {
public Button btn;
void Start () {
btn.onClick.AddListener (OnClickBtnCallback);
void OnClickBtnCallback() {
Debug.Log ("OnClickBtnCallback");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment