void Awake() { Instance = this; foreach (var a in Abilities) { lookup.Add(a.AbilityType, a); a.Initialize(); } }
void Start() { //Static references gameData = PersistentGameData.Instance; ui = UIManager.Instance; directory = PlayerAbilityDirectory.Instance; Inventory = Inventory_Bag.Instance; //Reference game data and use it to initialize the game data = gameData.SaveFile; //UI ui.UpdateAllPlayerInfo(data); //Model color feedback.playerColorAssigner.UpdateColor(gameData.SaveFile); //Initialize class resourceManagement = new PlayerResourceManagement(this); //Cache layerInteractable = CharacterSettings.instance.InteractableLayer; }