Пример #1
0
 public void ServerPerformInteraction(PositionalHandApply interaction)
 {
     if (doorRegion.Contains(interaction.WorldPositionTarget))
     {
         microwave.RequestDoorInteraction(interaction.HandSlot);
     }
     else if (powerRegion.Contains(interaction.WorldPositionTarget))
     {
         microwave.RequestToggleActive();
     }
     else if (timerAddRegion.Contains(interaction.WorldPositionTarget))
     {
         microwave.RequestAddTime(TIMER_INCREMENT);
     }
     else if (timerRemoveRegion.Contains(interaction.WorldPositionTarget))
     {
         microwave.RequestAddTime(-TIMER_INCREMENT);
     }
 }