Пример #1
0
 private void Awake()
 {
     if (Instance == null)
     {
         Instance  = this;
         DataAsset = new DataAssetManager();
         DataAsset.Init(UnitTable);
         DontDestroyOnLoad(gameObject);
     }
     else
     {
         Destroy(gameObject);
     }
 }
Пример #2
0
 void Awake()
 {
     Get           = this;
     m_DataManager = new DataAssetManager();
     m_DataManager.Init(m_AssetUnitTable);
 }