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