public void StartMixingBottles(ScreamContainer heldBottle, ScreamContainer groundBottle) { Debug.Log($"Started mixing bottles {heldBottle.name} and {groundBottle.name}"); ScreamInventoryComponent inventoryComponent = GameUI.Instance.ScreamComposerUI.ScreamInventory; inventoryComponent.StartMixingBottles(heldBottle, groundBottle); GameUI.Instance.ScreamComposerUI.Show(); }
public void StartMixingBottles(ScreamContainer heldBottle, ScreamContainer groundBottle) { Debug.Log($"Started mixing bottles {heldBottle.name} and {groundBottle.name}"); ScreamInventoryComponent inventoryComponent = GameUI.Instance.ScreamComposerUI.ScreamInventory; _sourceBottle = heldBottle; _targetBottle = groundBottle; var sourceScreamNotes = _sourceBottle.ScreamSounds; var targetScreamNotes = _targetBottle.ScreamSounds; for (int slotIndex = 0; slotIndex < 3; ++slotIndex) { inventoryComponent.SetSourceBottleNote(slotIndex, slotIndex < sourceScreamNotes.Count ? sourceScreamNotes[slotIndex] : null); inventoryComponent.SetTargetBottleNote(slotIndex, slotIndex < targetScreamNotes.Count ? targetScreamNotes[slotIndex] : null); } }