Esempio n. 1
0
    // LateUpdate is called after all Update functions have been called
    // LateUpdate is called every frame, if the Behaviour is enabled.
    void LateUpdate()
    {
        if (!this.simuEnded)
        {
            simulatedTime += 1.0f / targetFPS;

            // Motion part
            if (this.motionManager.movementController == MotionManager.MovementController.AutoPilot)
            {
                this.motionManager.UpdateWaypoint(this.redirectionManager.currState);
            }

            // Redirection Part
            this.redirectionManager.Run();

            if (!userIsWalking)
            {
                userIsWalking = true;
                //// Allow Walking
                //UserController.allowWalking = true;
                // Start Logging
                statisticsLogger.BeginLogging();
            }
        }
    }