Ejemplo n.º 1
0
    // 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);
    }
Ejemplo n.º 2
0
 private void Update()
 {
     currentState.Update(this);
 }
 private void Update() => _currentGameState.Update(this);