Exemple #1
0
 private void TileInfo(Data.TileData data)
 {
     _iconImage.sprite = data._sprite;
     _name.text        = data._uiName;
     _loar.text        = data._loar;
     ChangeRect();
 }
Exemple #2
0
    public override void Init(Data.BaseData data)
    {
        _renderer = GetComponent <SpriteRenderer>();
        Data      = data as Data.TileData;
        TileType type;

        System.Enum.TryParse <TileType>(Data._type, out type);
        TILETYPE   = type;
        ORIGINTYPE = type;
        name       = Data._name;
    }
Exemple #3
0
    private void TileDBRegist()
    {
        //LowText tileText = GameMng.Table.Get(TableType.Tile);
        LowText tileText = TableMng.Instance.Get(TableType.Tile);

        for (int i = 0; i < tileText.GetCount(); i++)
        {
            Data.TileData info = new Data.TileData(tileText, i);
            _tileInfos.Add(info._name, info);
            _datas.Add(info._name, info);
        }
    }