Exemplo n.º 1
0
    public void Initialized(CUnit unit)
    {
        CDataManager dataMgr = CDataManager.Inst;

        if (dataMgr == null)
        {
            return;
        }

        m_inventoryInfo = dataMgr.PlayerRecord.InventoryInfo;

        m_unit       = unit;
        m_actionCtrl = unit.GetComponent <CActionCtrl>();

        if (m_unit == null)
        {
            return;
        }

        // 장비 아이템을 장착
        InitSlot();
        InitWeaponSlot(dataMgr);

        m_wearableMgr.Init(m_actionCtrl.Anim.gameObject, m_inventoryInfo);
        m_unit.Status.ResisterSet(m_wearableMgr.TotalResister);
    }