void Start() { GameObject gameManager = GameObject.FindGameObjectWithTag("GameManager"); GameObject cardManager = GameObject.FindGameObjectWithTag("CardManager"); loader = cardManager.GetComponent <UI_CardLoader> (); hud = gameManager.GetComponent <UI_MeterManager> (); panel = GetComponentInParent <UI_CardPanel> (); }
// Use this for initialization void Start() { panel = infoPanel.GetComponent <UI_CardPanel> (); }