Ejemplo n.º 1
0
    public void Start()
    {
        t = false;
        current_time_movement = 0;
        var go = gameObject;

        if (GlobalController.patientOrPhysio)
        {
            GetMovementPoints.LoadLineRenderer(ref go, ref lineRenderer, c1, c2);
            GetMovementPoints.SavePoints(GlobalController.choiceAvatar,
                                         "/Movimentos/",
                                         GlobalController.instance.movement.pontosMovimento,
                                         mao,
                                         cotovelo,
                                         ombro,
                                         braco,
                                         true);
        }
        else
        {
            GetMovementPoints.LoadLineRenderer(ref go, ref lineRenderer, c1, c3);
            GetMovementPoints.SavePoints(GlobalController.choiceAvatar,
                                         "/Exercicios/",
                                         GlobalController.instance.exercise.pontosExercicio,
                                         mao,
                                         cotovelo,
                                         ombro,
                                         braco,
                                         true);
        }

        Assign();
    }
Ejemplo n.º 2
0
    /**
     * Descrever aqui o que esse método realiza.
     */
    void Start()
    {
        if (GlobalController.instance != null &&
            GlobalController.instance.movement != null)
        {
            t      = false;
            drawed = false;

            current_time   = new List <float>();
            f_mao_pos      = new List <Vector3>();
            f_mao_rot      = new List <Vector3>();
            f_ombro_pos    = new List <Vector3>();
            f_ombro_rot    = new List <Vector3>();
            f_cotovelo_pos = new List <Vector3>();
            f_cotovelo_rot = new List <Vector3>();
            f_braco_pos    = new List <Vector3>();
            f_braco_rot    = new List <Vector3>();

            var currentscene = SceneManager.GetActiveScene().name;
            var go           = gameObject;

            if (currentscene == "GraphsMovimentoPhysio")
            {
                string   file = Application.dataPath + "/Movimentos/" + GlobalController.instance.movement.pontosMovimento;
                string[] p1   = System.IO.File.ReadAllLines(file);
                LoadData(p1);
                Assign();
                GetMovementPoints.LoadLineRenderer(ref go, ref lineRenderer, c1, c2);
            }
            else
            {
                if (transform.root.gameObject.name == "Grafico Fisio")
                {
                    string   file = Application.dataPath + "/Movimentos/" + GlobalController.instance.movement.pontosMovimento;
                    string[] p1   = System.IO.File.ReadAllLines(file);
                    LoadData(p1);
                    Assign();
                    GetMovementPoints.LoadLineRenderer(ref go, ref lineRenderer, c1, c2);
                }
                else
                {
                    string   file = Application.dataPath + "/Exercicios/" + GlobalController.instance.exercise.pontosExercicio;
                    string[] p1   = System.IO.File.ReadAllLines(file);
                    LoadData(p1);
                    Assign();
                    GetMovementPoints.LoadLineRenderer(ref go, ref lineRenderer, c1, c3);
                }
            }
        }
        else
        {
            Debug.Log("Você violou o acesso!");
        }
    }
    public void Awake()
    {
        t = false;
        current_time_movement = 0;
        var go = gameObject;

        if (GlobalController.patientOrPhysio)
        {
            GetMovementPoints.LoadLineRenderer(ref go, ref lineRenderer, c1, c2);
        }
        else
        {
            GetMovementPoints.LoadLineRenderer(ref go, ref lineRenderer, c1, c3);
        }
    }
Ejemplo n.º 4
0
 /**
  * Descrever aqui o que esse método realiza.
  */
 void Awake()
 {
     if (GlobalController.instance != null &&
         (GlobalController.instance.movement != null ||
          GlobalController.instance.exercise != null)
         )
     {
         t = false;
         var go = gameObject;
         current_time_movement = 0;
         if (GlobalController.patientOrPhysio)
         {
             GetMovementPoints.LoadLineRenderer(ref go, ref lineRenderer, c1, c2);
             GetMovementPoints.SavePoints(GlobalController.choiceAvatar,
                                          "/Movimentos/",
                                          GlobalController.instance.movement.pontosMovimento,
                                          mao,
                                          cotovelo,
                                          ombro,
                                          braco,
                                          true);
         }
         else
         {
             GetMovementPoints.LoadLineRenderer(ref go, ref lineRenderer, c1, c3);
             GetMovementPoints.SavePoints(GlobalController.choiceAvatar,
                                          "/Exercicios/",
                                          GlobalController.instance.exercise.pontosExercicio,
                                          mao,
                                          cotovelo,
                                          ombro,
                                          braco,
                                          true);
         }
     }
     else
     {
         Debug.Log("Você violou o acesso!");
     }
 }
 /**
  * Descrever aqui o que esse método realiza.
  */
 void Awake()
 {
     if (GlobalController.instance != null &&
         (GlobalController.instance.movement != null ||
          GlobalController.instance.exercise != null)
         )
     {
         t = false;
         var go = gameObject;
         current_time_movement = 0;
         if (GlobalController.patientOrPhysio)
         {
             GetMovementPoints.LoadLineRenderer(ref go, ref lineRenderer, c1, c2);
         }
         else
         {
             GetMovementPoints.LoadLineRenderer(ref go, ref lineRenderer, c1, c3);
         }
     }
     else
     {
         Debug.Log("Você violou o acesso!");
     }
 }