예제 #1
0
 // Use this for initialization
 void Start()
 {
     rndLvlLoad = GameObject.FindGameObjectWithTag("Loader").GetComponent <RandomLevelLoad>();
 }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     rndLvlLoad = GameObject.FindGameObjectWithTag("Loader").GetComponent <RandomLevelLoad>();
     btn        = GetComponent <Button>();
     btn.onClick.AddListener(() => HandleClick());
 }