Exemplo n.º 1
0
 public SensorVisitor(SensorEventHandler handler)
 {
     if (handler == null)
     {
         throw new ArgumentNullException("handler");
     }
     this.handler = handler;
 }
Exemplo n.º 2
0
        protected override void Awake()
        {
            base.Awake();

            CurrentBufferSize = 0;

            if (OnObstruction == null)
            {
                OnObstruction = new SensorEventHandler();
            }

            if (OnClear == null)
            {
                OnClear = new SensorEventHandler();
            }
        }
Exemplo n.º 3
0
 public SensorVisitor(SensorEventHandler handler)
 {
     _handler = handler ?? throw new ArgumentNullException(nameof(handler));
 }
Exemplo n.º 4
0
 public SensorVisitor(SensorEventHandler handler) {
   if (handler == null)
     throw new ArgumentNullException("handler");
   this.handler = handler;
 }
Exemplo n.º 5
0
 public SensorVisitor(SensorEventHandler handler)
 {
     _handler = handler;
 }