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>();
    }
Example #2
0
 void Start()
 {
     _aiMananger     = GetComponent <AIMananger_script>();
     _gameController = _aiMananger.AIBoard.GameController;
 }