void Awake()
 {
     if (Instance != null && Instance != this)
     {
         Destroy(this.gameObject);
     }
     else
     {
         Instance = this;
     }
     DontDestroyOnLoad(this.gameObject);
     BuildAbilityList();
     BuildPartyDatabase();
     BuildEnemyDatabase();
     inventoryController = FindObjectOfType <InventoryController>();
 }
Exemplo n.º 2
0
 private void Awake()
 {
     characterDatabase = GetComponent <CharacterDatabase>();
 }