Exemplo n.º 1
0
    public void __Awake()
    {
        _loader = _JsonInfoLoader.Instance;
        var _setting_info = _loader.m_groundSettingInfo;

        MAXGROUNDSIZE  = _setting_info.total_height;   // 좌우 동일한 사이즈로 확장된다고 가정
        STDSIZE        = _setting_info.current_height; // 좌우 동일한 사이즈로 확장된다고 가정
        MAXGROUNDLEVEL = 100;                          // 임시값

        __InitDictionary();
        __InitLevelInfo();
        __InitGroundArrInfo();
    }
Exemplo n.º 2
0
    public void __Awake()
    {
        _loader = _JsonInfoLoader.Instance;

        storage = new Dictionary <E_BuildingType, BuildInformation>();

        // json에서 읽은 파일로 셋팅
        foreach (var item in _loader.m_buildInfomation)
        {
            storage[item.type] = item;
        }

        // 임시 셋팅시
        //for (int i = 0; i < (int)E_BuildingType.Max; i++)
        //{
        //    storage[(E_BuildingType)i] = new BuildInformation();
        //    storage[(E_BuildingType)i].Clear();

        //    storage[(E_BuildingType)i].__Init(((E_BuildingType)i).ToString() ,(E_BuildingType)i, 1, 1, 10, 10);    // 임시
        //}
    }
Exemplo n.º 3
0
    public void __Awake()
    {
        _loader = _JsonInfoLoader.Instance;

        userInfos = _loader.m_userInfo; // json 에서 읽어온 파일 그대로 셋팅
    }