Exemplo n.º 1
0
    public virtual void Initialize(GameName _game, string _categoryKey, string cardKey, CardData data)
    {
        editableElement = GetComponent <EditableElement>();

        ConfigurateUI(data);
        categoryKey = _categoryKey;
        Key         = cardKey;
        if (data.audioClip1 != null)
        {
            Clip = data.audioClip1;
        }

        BindBtns(data);
    }
Exemplo n.º 2
0
    public void Initialize(GameName _game, string _categoryKey, CategoryData _categoryData)
    {
        patientManager  = FindObjectOfType <PatientDataManager>();
        editableElement = GetComponent <EditableElement>();

        if (title != null)
        {
            title.text = _categoryData.title;
        }
        if (img != null)
        {
            img.sprite = _categoryData.img;
        }
        if (_categoryData.clip != null)
        {
            Clip = _categoryData.clip;
        }

        BindBtn();

        CategoryKey = _categoryKey;
        game        = _game;
    }
Exemplo n.º 3
0
 public void Click()
 {
     EditableElement.SendKeys("");
     EditableElement.SendKeys(Keys.Enter);
 }