private void Awake() { if (image == null) { image = GetComponent <Image> (); } if (magicTooltip == null) { magicTooltip = FindObjectOfType <MagicTooltip> (); } }
private void Awake() { if (image == null) { image = GetComponent <Image> (); } if (magicTooltip == null) { magicTooltip = FindObjectOfType <MagicTooltip> (); } if (magicNameText == null) { magicNameText = transform.parent.GetComponentInChildren <Text> (); } }