Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Manager : Broadcaster
- {
- public Group[] discrepancies;
- public override void OnInitialize() {
- Listen(Data.enterBroadcast, Enable);
- Listen(Data.exitBroadcast, Disable);
- }
- private void Enable(ListenResult result) {
- Data d = (Data)result.Value;
- d.DoEnable.Enabled.Value = true;
- }
- private void Disable(ListenResult result) {
- // result.value is always null on exit :V
- // Data d = (Data)result.Value;
- // d.FaultID.DoEnable.Value = false;
- foreach(Group group in discrepancies) {
- foreach(Helper helper in group.Properties) {
- helper.Enabled.Value = false;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement