Esempio n. 1
0
    private void InitializeBoat()
    {
        _Rower = GameObject.Find("RowerCore").GetComponent <RowerCore>();

        _posX    = 0.0f;
        _posY    = 0.0f;
        _posZ    = 0.0f;
        _TargetZ = 0.0f;


        _lastPollTime = Time.time - 0.01f;
        _lastZ        = 0;
    }
Esempio n. 2
0
    private void ConnectToRower()
    {
        _Rower = GameObject.Find("RowerCore").GetComponent <RowerCore>();
        Debug.Log(_Rower.RowerState);

        _MachineStatus = GameObject.Find("HUD_MachineStatus").GetComponent <TextMeshPro>();
        _MachineStatus.SetText("Hello, World!");

        _MachineStatus    = GameObject.Find("HUD_MachineStatus").GetComponent <TextMeshPro>();
        _WorkoutCadence   = GameObject.Find("HUD_WorkoutCadence").GetComponent <TextMeshPro>();
        _WorkoutDistance  = GameObject.Find("HUD_WorkoutDistance").GetComponent <TextMeshPro>();
        _WorkoutDuration  = GameObject.Find("HUD_WorkoutDuration").GetComponent <TextMeshPro>();
        _WorkoutCalories  = GameObject.Find("HUD_WorkoutCalories").GetComponent <TextMeshPro>();
        _WorkoutHeartRate = GameObject.Find("HUD_WorkoutHeartRate").GetComponent <TextMeshPro>();
        _WorkoutPower     = GameObject.Find("HUD_WorkoutPower").GetComponent <TextMeshPro>();
    }