Пример #1
0
    void Start()
    {
        gameManager = GameObject.FindGameObjectWithTag("GameManager");
        cardManager = GameObject.FindGameObjectWithTag("CardManager");

        hud = gameManager.GetComponent <UI_MeterManager> ();
    }
Пример #2
0
    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> ();
    }
Пример #3
0
    // Use this for initialization
    void Awake()
    {
        energy    = startEnergy;
        composure = startValue;

        hud = GetComponent <UI_MeterManager> ();

        meterMod = GetMeterMod(meterModStartValue);
    }
Пример #4
0
    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> ();
    }