void Start() { gameManager = GameObject.FindGameObjectWithTag("GameManager"); cardManager = GameObject.FindGameObjectWithTag("CardManager"); hud = gameManager.GetComponent <UI_MeterManager> (); }
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 Awake() { energy = startEnergy; composure = startValue; hud = GetComponent <UI_MeterManager> (); meterMod = GetMeterMod(meterModStartValue); }
protected virtual void SetUp() { mySlotState = SlotState.CARD_SLOT; rectTransform = GetComponent <RectTransform> (); cardManager = GameObject.FindGameObjectWithTag("CardManager"); gameManager = GameObject.FindGameObjectWithTag("GameManager"); hud = gameManager.GetComponent <UI_MeterManager> (); loader = cardManager.GetComponent <UI_CardLoader> (); cardImage = GetComponent <Image> (); }