예제 #1
0
    protected virtual void OnValidate()
    {
        if (_border == null)
        {
            _border = transform.GetChild(0).GetComponent <Image>();
        }

        if (_image == null)
        {
            _image = transform.GetChild(1).GetComponent <Image>();
        }

        if (_fillExp == null)
        {
            _fillExp = transform.GetChild(3).GetComponent <Image>();
        }

        if (_level == null)
        {
            _level = transform.GetChild(4).GetComponentInChildren <TMP_Text>();
        }


        _characters_type = CharactersSubType.HardSkill;
    }
예제 #2
0
    protected virtual void OnValidate()
    {
        if (_border == null)
        {
            _border = transform.GetChild(0).GetComponent <Image>();
        }

        if (_image == null)
        {
            _image = transform.GetChild(1).GetComponent <Image>();
        }


        _characters_type = CharactersSubType.Bonus;
        _Title           = INST_TITLE;
    }