private void Awake() { if (Instance == null) { Instance = this; DataAsset = new DataAssetManager(); DataAsset.Init(UnitTable); DontDestroyOnLoad(gameObject); } else { Destroy(gameObject); } }
void Awake() { Get = this; m_DataManager = new DataAssetManager(); m_DataManager.Init(m_AssetUnitTable); }