// Use this for initialization
	void Start () {
		parent = this.GetComponentInParent<ResearchScreenMain>();
		parent.notifyOfIndividualResearchScreen(this);
		closeBtn.onClick.Add(new EventDelegate(this,"onCloseWindow"));
		startResearchBtn.onClick.Add(new EventDelegate(this,"onStartDoingResearch"));
		
	}
Ejemplo n.º 2
0
	void Start () {
		initResearchRow();
		parent = this.GetComponentInParent<ResearchScreenMain>();
		_button = this.gameObject.AddComponent<UIButton>();
		_button.state = UIButtonColor.State.Normal;
		this.gameObject.AddComponent<BoxCollider2D>();
		this.GetComponent<UIWidget>().autoResizeBoxCollider = true;
		this.GetComponent<UIWidget>().ResizeCollider();
		this.GetComponent<UIWidget>().depth = 10;
		_button.onClick.Add(new EventDelegate(this,"onClicked"));
		GarageManager.REF.doConversation("Research_Tutorial1");
		
		lbl = this.GetComponentInChildren<UILabel>();
		
	}