public void DoSwitch() { if (isArmed != desiredArmState) { if (!isArmed) { Arm(); } else { Disarm(); } } if (desiredChannel != currentChannel) { currentChannel = desiredChannel; Resources.Sound.RemoteChannelChange.PlayOneShot(this); } RemoteExplosivesUtility.UpdateSwitchDesignation(this); }
private void ChannelGizmoAction() { currentChannel = RemoteExplosivesUtility.GetNextChannel(currentChannel); UpdateNumArmedExplosivesInRange(); }
private void ChannelGizmoAction() { desiredChannel = RemoteExplosivesUtility.GetNextChannel(desiredChannel); RemoteExplosivesUtility.UpdateSwitchDesignation(this); }
public void SetChannel(RemoteExplosivesUtility.RemoteChannel channel) { currentChannel = desiredChannel = channel; }