void Awake() { mInstance = this; tween = this.GetComponent<UITweenPos>(); numberDialog = this.transform.Find("NumberDialog").gameObject; numberInput = transform.Find("NumberDialog/NumberInput").GetComponent<InputField>(); numberDialog.SetActive(false); }
void Awake() { mInstance = this; tween = this.GetComponent<UITweenPos>(); attackLabel = transform.Find("attack").GetComponent<Text>(); defLabel = transform.Find("def").GetComponent<Text>(); speedLabel = transform.Find("speed").GetComponent<Text>(); pointRemainLabel = transform.Find("pointRemain").GetComponent<Text>(); summaryLabel = transform.Find("summry").GetComponent<Text>(); attackButtonGo = transform.Find("attack_plusbutton").gameObject; defButtonGo = transform.Find("def_plusbutton").gameObject; speedButtonGo = transform.Find("speed_plusbutton").gameObject; m_playerStatus = GameObject.FindGameObjectWithTag(Tags.player).GetComponent<PlayerStatus>(); }
void Awake() { mInstance = this; tween=this.GetComponent<UITweenPos>(); headgear = transform.Find("HeadGear").gameObject; armor = transform.Find("Armor").gameObject; rightHand = transform.Find("RightHand").gameObject; leftHand = transform.Find("LeftHand").gameObject; shoe = transform.Find("Shoe").gameObject; accessory = transform.Find("Accessory").gameObject; ps = GameObject.FindGameObjectWithTag(Tags.player).GetComponent<PlayerStatus>(); }
void Awake() { mInstance = this; uitweenPos = this.gameObject.GetComponent<UITweenPos>(); }