I would like to buy an item in shop which is in other scene so im doing this like:
I have a player which have DontDestroyOnLoad() and he have also List player_items_list;
in shop(other scene) i have button which is adding Item to a player_items_list and in inspector everything is working good when i have to return to first scene i still have this item in list but when im trying to use
Debug.Log(player_items_list.Count) is always 0. I dont know why becouse in inspector this item is existing in list.
Debug.Log is in Awake()
I tried to check for sure if player in shop is same object like in other scene and yes it is.
Or maybe there is a better way to add Item to a player list?