Пример #1
0
    private void MonsterInfo(Data.MonsterData mon)
    {
        _iconImage.sprite = mon._sprite;
        _name.text        = mon._uiName;
        _loar.text        = mon._loar;

        ChangeRect();
    }
Пример #2
0
    private void MonsterDBRegist()
    {
        //LowText monsterText = GameMng.Table.Get(TableType.Monster);
        LowText monsterText = TableMng.Instance.Get(TableType.Monster);


        for (int i = 0; i < monsterText.GetCount(); i++)
        {
            Data.MonsterData data = new Data.MonsterData(monsterText, i);
            _monsterInfos.Add(data._name, data);
            _datas.Add(data._name, data);
        }
    }
Пример #3
0
 public MonsterStatus(Data.MonsterData data, Monster mon, HP hp)
 {
     mHp          = data._hp;
     maxHp        = mHp;
     EXP          = data._exp;
     AP           = data._ap;
     DP           = data._dp;
     LEVEL        = data._level;
     _monster     = mon;
     _hp          = hp;
     InstanceID   = _monster.GetInstanceID();
     _createItems = data._createItem.Split('|');
     _hp.SetStatus(this);
 }
Пример #4
0
    public override void Init(Data.BaseData info)
    {
        Data = info as Data.MonsterData;

        _animator = GetComponent <Animator>();
        Renderer  = GetComponent <SpriteRenderer>();
        _hp       = Instantiate(Resources.Load <HP>("Prefabs/UI/World/HP"), transform.position + new Vector3(0, 0.75f, 0), transform.rotation, transform);
        _status   = new MonsterStatus(Data, this, _hp);

        radius = 3;

        CURRHP = _status.Hp;

        mHero = GameMng.CharMng.GetHero();

        monsterAI = new MonsterAI(this, mHero);
    }