void Start()
 {
     _sfxSource   = GetComponents <AudioSource>()[0];
     _musicSource = GetComponents <AudioSource>()[1];
     _uiManager   = GetComponent <UIManager_script>();
     CheckMutes();
 }
Exemplo n.º 2
0
 void Awake()
 {
     _uiManager      = GetComponent <UIManager_script>();
     _gameController = GetComponent <GameController_script>();
     _levelScores    = new List <int>();
     //_uiManager.UpdateScoreUI(0);
 }
Exemplo n.º 3
0
 void Awake()
 {
     _csvImporter       = GetComponent <CSVImporter_script>();
     _uiManager         = _csvImporter.UiManager;
     PathDebugText.text = "";
     //StartCoroutine("ImportAI");
     ImportCharacterGraphics();
 }
Exemplo n.º 4
0
 void Awake()
 {
     _uiManager            = GetComponent <UIManager_script>();
     _objectPlacerMananger = GetComponent <ObjectPlacerMananger_script>();
     _scoreManager         = GetComponent <ScoreManager_script>();
     _effectMananger       = GetComponent <EffectMananger_script>();
     Player.Config(this);
     Player.gameObject.SetActive(false);
 }
Exemplo n.º 5
0
 void Start()
 {
     _uiManager      = GetComponent <UIManager_script>();
     _scoreManager   = GetComponent <ScoreManager_script>();
     _gameController = GetComponent <GameController_script>();
     _effectMananger = GetComponent <EffectMananger_script>();
     _uiManager.SetUpButtons(Objects);
     _placedObjects = new List <GameObject>();
 }
Exemplo n.º 6
0
    void Awake()
    {
        //LeftBoard = MainCanvas.transform.GetChild(1).GetChild(2).GetChild(4).GetComponent<TotalValueTracker_script>();
        //RightBoard = MainCanvas.transform.GetChild(1).GetChild(2).GetChild(5).GetComponent<TotalValueTracker_script>();
        _leftDeck  = LeftBoard.GetComponent <PlayerDeckMananger_script>();
        _rightDeck = RightBoard.GetComponent <PlayerDeckMananger_script>();

        _uiManager         = GetComponent <UIManager_script>();
        _globalDeckManager = GetComponent <GlobalDeckManager_script>();
        _playerInfoManager = _uiManager.PlayerInfoManager;
    }
Exemplo n.º 7
0
    void Start()
    {
        _cardAbilityInfo  = GameController.GetComponent <CardAbilityInfoManager_script>();
        _uiManager        = GameController.GetComponent <UIManager_script>();
        _refreshPriceText = transform.GetChild(3).GetComponent <TextMeshProUGUI>();
        _refreshButton    = transform.GetChild(2).GetChild(0).GetComponent <Button>();

        _cardHolder = transform.GetChild(1);
        //DefaultCard = _cardHolder.GetChild(0).gameObject;
        NewShop                = true; //new shop after each game?
        _activePrice           = StartingPrice;
        _refreshPriceText.text = _activePrice.ToString("F0") + " Credits";
    }
Exemplo n.º 8
0
    void Awake()
    {
        _valueText          = this.transform.GetChild(2).GetChild(0).GetComponent <TextMeshProUGUI>();
        _skipButton         = this.transform.GetChild(3).GetChild(0).GetComponent <Button>();
        _stayButton         = this.transform.GetChild(3).GetChild(1).GetComponent <Button>();
        _mainCardBoard      = this.transform.GetChild(0);
        _handCardBoard      = this.transform.GetChild(1);
        _playerDeckMananger = GetComponent <PlayerDeckMananger_script>();
        _playerDoneScreen   = this.transform.GetChild(2).GetChild(3).gameObject;

        _uiManager       = GameController.GetComponent <UIManager_script>();
        _playerIndicator = _uiManager.PlayerIndicator[PlayerID];
    }
    void Awake()
    {
        _aiMananger     = AiSelecter.GetComponent <AIMananger_script>();
        _gameController = _aiMananger.AIBoard.GameController;
        _uiManager      = _gameController.GetComponent <UIManager_script>();


        _aiHolder = transform.GetChild(1);

        _aiImage = new List <Image>();
        _aiImage.Add(_aiHolder.GetChild(0).GetChild(0).GetComponent <Image>());
        _aiImage.Add(_aiHolder.GetChild(1).GetChild(0).GetComponent <Image>());
        _aiImage.Add(_aiHolder.GetChild(2).GetChild(0).GetComponent <Image>());

        _aiText = new List <TextMeshProUGUI>();
        _aiText.Add(_aiHolder.GetChild(0).GetChild(1).GetComponent <TextMeshProUGUI>());
        _aiText.Add(_aiHolder.GetChild(1).GetChild(1).GetComponent <TextMeshProUGUI>());
        _aiText.Add(_aiHolder.GetChild(2).GetChild(1).GetComponent <TextMeshProUGUI>());

        _uiManager.OpponentSelction.SetActive(false);

        _generateSelectionCards = _uiManager.CardSelectionScreen.GetComponent <GenerateSelectionCards_script>();
    }