private void Awake() { _instance = this; tween = GetComponent <TweenPosition>(); numberDialog = transform.Find("NumberDialog").gameObject; numberInput = transform.Find("NumberDialog/NumberInput").GetComponent <UIInput>(); numberDialog.SetActive(false); }
// Use this for initialization void Awake() { _instance = this; tween = this.GetComponent<TweenPosition> (); NumDialog = this.transform.Find ("NumDilag").gameObject; inputxu=transform.Find("NumDilag/NumInput").GetComponent<UIInput>(); NumDialog.SetActive (false); }
private void Awake() { instance = this; this.gameObject.SetActive(false); numberDialog = this.transform.Find("NumberDialog").gameObject; inputField = this.transform.Find("NumberDialog/InputField").GetComponent <InputField>(); resultImage = this.transform.Find("ResultImg").gameObject; resultText = this.transform.Find("ResultImg/ResultText").GetComponent <Text>(); }
private void Awake() { _instance = this; shopDrug = GetComponent <UIPositionMove>(); NumberDialog = transform.Find("NumberDialog").gameObject; NumberInput = NumberDialog.transform.Find("NumberInput").GetComponent <UIInput>(); NumberDialog.SetActive(false); }
void Awake() { mInstance = this; tween = this.GetComponent<UITweenPos>(); numberDialog = this.transform.Find("NumberDialog").gameObject; numberInput = transform.Find("NumberDialog/NumberInput").GetComponent<InputField>(); numberDialog.SetActive(false); }
private int buyId = 0; // 購買物品的ID void Awake () { // 單例化的附值 _insance = this; // 附值 tweenPos = this.GetComponent<TweenPosition> (); numberDialog = this.transform.Find ("NumBuyBG").gameObject; buyNumInput = transform.Find ("NumBuyBG/BG/numInput").GetComponent<UIInput>(); closeBtn = this.transform.Find ("CloseBtn").GetComponent<UIButton> (); EventDelegate closeBtnED = new EventDelegate (this, "ShowCloseBuyDrug"); closeBtn.onClick.Add (closeBtnED); okBuyBtn = this.transform.Find ("NumBuyBG/OKBuyBtn").GetComponent<UIButton>(); EventDelegate okBuyBtnED = new EventDelegate (this, "OnOKButtonClick"); okBuyBtn.onClick.Add (okBuyBtnED); // 面板的隱藏或關閉 numberDialog.SetActive (false); }
public void Awake() { _instance = this; }
void Awake() { instance = this; }