Created
May 16, 2016 11:13
-
-
Save Kogarasi/fda255140ea3d2d99d60292dce8c0ca1 to your computer and use it in GitHub Desktop.
uGUIs Sample No.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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