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