Типо есть коллекция, но в нее не добавляются элементы.
Выдает ошибку:
NullReferenceException: Object reference not set to an instance of an object
BoxController.OpenBox (System.Int32 BoxId) (at Assets/Scripts/BoxController.cs:102)
Код:
Brawler PPBrawler = playerStats.brawlers[Random.Range(0, playerStats.brawlers.Count)];
print(PPBrawler.Name); // PPBrawler не равен null
int count = Random.Range(Boxes[BoxId].PPAmount.x, Boxes[BoxId].PPAmount.y);
items.powerPoints.points.Add(count, PPBrawler);
PPBrawler.PowerPoints += count;