Esempio n. 1
0
    private void Awake()
    {
        _combatant = GetComponentInParent <Combatant>();

        _layeredText = GetComponent <LayeredText>();
        _animator    = GetComponent <Animator>();
    }
Esempio n. 2
0
    protected override void Awake()
    {
        base.Awake();

        _portrait   = GetComponentsInChildren <Image>()[1];
        _nameText   = GetComponentsInChildren <Text>()[0];
        _hpText     = GetComponentsInChildren <LayeredText>()[0];
        _energyText = GetComponentsInChildren <LayeredText>()[1];
        _hpBar      = GetComponentsInChildren <Slider>()[0];
        _energyBar  = GetComponentsInChildren <Slider>()[1];
    }
    private void Awake()
    {
        _background    = GetComponent <Image>();
        _tryAgainText  = GetComponentsInChildren <Text>()[0];
        _playAgainText = GetComponentsInChildren <Text>()[1];
        _gameOverText  = GetComponentsInChildren <LayeredText>()[0];
        _victoryText   = GetComponentsInChildren <LayeredText>()[1];

        gameObject.SetActive(false);
        _tryAgainText.gameObject.SetActive(false);
        _playAgainText.gameObject.SetActive(false);
        _gameOverText.gameObject.SetActive(false);
        _victoryText.gameObject.SetActive(false);
    }
    private void Awake()
    {
        _itemIcon            = GetComponentsInChildren <Image>()[1];
        _itemDescriptionText = GetComponentInChildren <Text>();
        _itemNameText        = GetComponentInChildren <LayeredText>();

        ItemParamField[] itemParamFields = GetComponentsInChildren <ItemParamField>();
        _weightValueField     = itemParamFields[0];
        _accuracyValueField   = itemParamFields[1];
        _damageValueField     = itemParamFields[2];
        _lethalityValueField  = itemParamFields[3];
        _mobilityValueField   = itemParamFields[4];
        _coverageValueField   = itemParamFields[5];
        _sturdinessValueField = itemParamFields[6];

        _onInteractText = GetComponentsInChildren <Text>().Last();
    }
Esempio n. 5
0
    protected override void Awake()
    {
        base.Awake();

        combatantHudLeft         = GetComponentsInChildren <CombatantHUD>()[0];
        combatantHudRight        = GetComponentsInChildren <CombatantHUD>()[1];
        _roundTransitionText     = GetComponentInChildren <LayeredText>();
        _roundTransitionAnimator = _roundTransitionText.GetComponent <Animator>();
        inventoryInterface       = GetComponentInChildren <InventoryInterface>(true);
        commandInterface         = GetComponentInChildren <CommandInterface>(true);
        queueInterface           = GetComponentInChildren <CommandQueueInterface>();
        lootInterface            = GetComponentInChildren <LootInterface>();
        itemDescriptionPanel     = GetComponentInChildren <ItemDescriptionPanel>();
        inputInfoInterface       = GetComponentInChildren <InputInfoInterface>();

        inventoryInterface.Show(false);
        lootInterface.Show(false);
        itemDescriptionPanel.gameObject.SetActive(false);

        _cameraController = FindObjectOfType <CameraController>();

        _gameOverOverlay = GetComponentInChildren <GameOverOverlay>(true);
    }
Esempio n. 6
0
 private void Awake()
 {
     _image    = GetComponent <Image>();
     text      = GetComponentInChildren <LayeredText>();
     _animator = GetComponent <Animator>();
 }
Esempio n. 7
0
 private void Awake()
 {
     _animator  = GetComponent <Animator>();
     _blockText = GetComponent <LayeredText>();
 }