private void SetMaster(IMultitoolMasterable master) { if (master is LightSwitchV2 lightSwitch && lightSwitch != relatedLightSwitch) { SubscribeToSwitchEvent(lightSwitch); }
bool IMultitoolSlaveable.TrySetMaster(PositionalHandApply interaction, IMultitoolMasterable master) { SetMaster(master); return(true); }
void IMultitoolSlaveable.SetMasterEditor(IMultitoolMasterable master) { SetMaster(master); }