Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
CustomAssetManager.cs
Go to the documentation of this file.
1using System.Collections.Generic;
2using UnityEngine;
3
4public class CustomAssetManager : ScriptableObject, ISerializationCallbackReceiver
5{
7
8 public string pathEditor = "Assets/Plugins/Essential/DB/Editor/";
9
10 public string exportPath = "Assets/Resources/Data/";
11
12 public string assembly = "Plugins.BaseCore";
13
14 public List<string> pathRawImport;
15
16 public List<ExcelBookImportSetting> books;
17
18 private void Awake()
19 {
20 Instance = this;
21 }
22
23 public void OnBeforeSerialize()
24 {
25 Instance = this;
26 }
27
28 public void OnAfterDeserialize()
29 {
30 Instance = this;
31 }
32
34 {
36 {
37 if (book.name == id)
38 {
39 return book;
40 }
41 }
42 return null;
43 }
44
46 {
48 if (book != null)
49 {
50 return book;
51 }
53 {
54 name = id
55 };
56 books.Add(book);
57 return book;
58 }
59}
List< string > pathRawImport
ExcelBookImportSetting GetOrCreateBook(string id)
static CustomAssetManager Instance
List< ExcelBookImportSetting > books
ExcelBookImportSetting GetBook(string id)