Ejemplo n.º 1
0
	void Awake(){
		_instance = this;
		tween = this.GetComponent<TweenPosition> ();
		numdialog = transform.Find ("Panel/NumDilag").gameObject;
		numInput = transform.Find ("Panel/NumDilag/NumInput").GetComponent<UIInput> ();
		numdialog.SetActive (false);

	}
Ejemplo n.º 2
0
 // Use this for initialization
 void Awake()
 {
     instance       = this;
     content_height = content.GetComponent <RectTransform>().rect.height;
     //content = transform.Find ("Content").gameObject;
     foreach (int id in weaponArray)
     {
         GameObject weaponitem = Instantiate(weaponitem_prefab);
         weaponitem.transform.SetParent(content.transform);
         weaponitem.GetComponent <WeaponItem> ().setId(id);
     }
 }