// Use this for initialization void Awake() { instance = this; nameText = transform.Find("NameText").GetComponent <Text>(); typeText = transform.Find("TypeText").GetComponent <Text>(); atkText = transform.Find("AtkText").GetComponent <Text>(); defText = transform.Find("DefText").GetComponent <Text>(); thumpText = transform.Find("ThumpText").GetComponent <Text>(); hpText = transform.Find("HpText").GetComponent <Text>(); mpText = transform.Find("MpText").GetComponent <Text>(); angerText = transform.Find("AngerText").GetComponent <Text>(); weightText = transform.Find("WeightText").GetComponent <Text>(); priceText = transform.Find("PriceBuyText").GetComponent <Text>(); }
public void OnTipsShow() { _Tips = UIManager.Instance.Open <TipsUI>(); _Tips.SetData(Input.mousePosition - new Vector3(Screen.width / 2f, Screen.height / 2f, 0)); }