private void OnEnable() { if (owner != null) { owner.RefreshInventory(); PopulateLootInventory(); } }
private void OnEnable() { if (owner != null) { owner.RefreshInventory(); PopulateInventory(); //if(owner.TryGetComponent(out Actor actor) && actor.actorType == ACTOR_TYPE.PLAYER) //{ // DelegateManager.UpdatePlayerUI = PopulateInventory; //} } else { //DelegateManager.setCurrentInventoryObject = SetOwner; } }