コード例 #1
0
ファイル: SerializeLevel.cs プロジェクト: xfilson/dn_asset
 public void OnEnable()
 {
     hideFlags = HideFlags.HideAndDontSave;
     AssetPreview.SetPreviewTextureCacheSize(64);
     if (_waves == null)
     {
         _waves = new List <EditorWave>();
     }
     if (_layout == null)
     {
         _layout = new LevelLayout(this);
     }
     if (_data_info == null)
     {
         _data_info = XTableMgr.GetTable <XEntityStatistics>();
     }
     _currentEdit  = -1;
     _markGOHeight = 2.0f;
 }
コード例 #2
0
ファイル: XTableUtil.cs プロジェクト: xfilson/dn_asset
 public static XEntityStatistics.RowData GetByID(this XEntityStatistics input, int id)
 {
     return(input.GetByUID(id));
 }