Esempio n. 1
0
 public InteractableObjectCollection(BonusData bonusData) : this()
 {
     foreach (var bonusInfo in bonusData.Bonuses)
     {
         var bonusType = bonusInfo.BonusType;
         foreach (var position in bonusInfo.Positions)
         {
             var bonus = _rm.CreateInteractableObject(bonusType, position);
             bonus.transform.position = position;
             _interactableObjects.Add(bonus);
         }
     }
 }