public TimableTrigger BuildTrigger(OHMSensor sensor, ITirggerAction action, float waitTimeInMilleseconds) { var trigger = new TimableTrigger(sensor, action, waitTimeInMilleseconds); _triggers.Add(trigger); _sensors.Add(sensor); return(trigger); }
public TimableTrigger(ISensor sensor, ITirggerAction action, float waitTimeInMilleseconds) { Sensor = sensor; _action = action; WaitTimeInMilleseconds = waitTimeInMilleseconds; }