예제 #1
0
 void Start()
 {
     _carcounter  = GetComponent <CarCounter> ();
     _eventsystem = GetComponent <EventSystem> ();
     _synccolor   = GetComponent <SyncColor> ();
     _synccolor.sync();
 }
예제 #2
0
 private void CarCounterRemove()
 {
     if (carCounter != null)
     {
         carCounter.OnCarsDetected -= this.OnCarsDetected;
         carCounter.Dispose();
         carCounter = null;
     }
 }
예제 #3
0
        private void CarCounterAdd()
        {
            carCounter = new CarCounter()
            {
                ContoursDraw     = cbCCDraw.Checked,
                TrackingLineDraw = cbCCDraw.Checked,
                CounterDraw      = cbCCDraw.Checked
            };

            carCounter.Init();
            carCounter.OnCarsDetected += this.OnCarsDetected;
        }