Skip to content

Instantly share code, notes, and snippets.

@Kogarasi
Created May 16, 2016 11:13
Show Gist options
  • Save Kogarasi/fda255140ea3d2d99d60292dce8c0ca1 to your computer and use it in GitHub Desktop.
Save Kogarasi/fda255140ea3d2d99d60292dce8c0ca1 to your computer and use it in GitHub Desktop.
uGUIs Sample No.1
using UnityEngine;
using UnityEngine.UI;
using System;
using System.Collections;
public class SampleController : uGUIs.Controller<SampleController> {
public Canvas canvas;
Button button; // GameObject "button"を作る必要があります
void Start () {
base.init( canvas );
button.onClick.AddListener( ()=>{
Debug.Log( "Clicked" );
} );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment