public void Initialize(
            IMessageReceiver receiver,
            KeyboardProvider keyboard,
            TouchPadProvider touchPad,
            MidiControllerProvider midiController,
            ParticleStore particleStore
            )
        {
            _keyboard                 = keyboard;
            _touchPad                 = touchPad;
            _midiController           = midiController;
            _particleStore            = particleStore;
            _keyboardVisibility       = keyboard.GetComponent <KeyboardVisibility>();
            _touchPadVisibility       = touchPad.GetComponent <TouchpadVisibility>();
            _midiControllerVisibility = midiController.GetComponent <MidiControllerVisibility>();

            receiver.AssignCommandHandler(
                VmmCommands.HidVisibility,
                message => SetHidVisibility(message.ToBoolean())
                );
            receiver.AssignCommandHandler(
                VmmCommands.MidiControllerVisibility,
                message => SetMidiVisibility(message.ToBoolean())
                );
        }
Beispiel #2
0
        public void Initialize(
            IMessageReceiver receiver,
            IDevicesRoot devicesRoot,
            KeyboardProvider keyboard,
            TouchPadProvider touchPad)
        {
            transform.parent           = devicesRoot.Transform;
            _keyboardParticleParent    = keyboard.transform;
            _mouseParticlePrefabParent = touchPad.transform;

            var _ = new ParticleControlReceiver(receiver, this);
        }
Beispiel #3
0
 public void Initialize(KeyboardProvider keyboard)
 {
     _keyboard = keyboard;
 }
 public void Initialize(KeyboardProvider provider)
 {
     _keyboard = provider;
 }