// Update is called once per frame void Update() { TimeInState += Time.deltaTime; // Read sensor data when in complex mode if (CurrentSensorMode == SensorMode.Complex) { TimeInWindow += Time.deltaTime; // If a full time frame has passed, update values based on sensor data if (TimeInWindow > TimeFrame) { ComputeStressComplex(); } } CurrentState.Update(this); }
private void Update() { currentState.Update(this); }
private void Update() => _currentGameState.Update(this);