Beispiel #1
0
 void Start()
 {
     shop = GameObject.FindObjectOfType <InGameShop>();
     //FieldInfo[] propertyInfo = typeof(MonoBehaviour);
     //foreach(FieldInfo p in propertyInfo)
     //   Debug.Log(p);
     //Debug.Log( propertyInfo.GetValue(shop, null));
 }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     shop = GameObject.FindObjectOfType <InGameShop>();
     button.onClick.AddListener(ButtonHandler);
 }