// Use this for initialization
    void Start()
    {
        // Get the scroll view defined for the widget:
        mScrollView = transform.Find("Background/Scroll View").gameObject;
        // Disable the default button:
        defaultPatientButton = mScrollView.transform.Find("Viewport/Content/ButtonPatient").gameObject;
        defaultPatientButton.SetActive(false);

        PatientEventSystem.startListening(
            PatientEventSystem.Event.PATIENT_NewPatientDirectoryFound,
            addPatientEntry
            );

        PatientDirectoryLoader.setPath("../Patients/");
    }
Exemple #2
0
    // Use this for initialization
    void Start()
    {
        PatientEventSystem.startListening(
            PatientEventSystem.Event.PATIENT_NewPatientDirectoryFound,
            addPatientEntry
            );

        PatientEventSystem.startListening(
            PatientEventSystem.Event.PATIENT_FinishedLoading,
            loadedPatient
            );

        // Start loading the patient directory:
        PatientDirectoryLoader.setPath("../Patients/");

        // Activate all the objects:
        sphere.SetActive(true);
        sphereEmitters.SetActive(true);

        // Start the animations of the objects, and set their normalized time to 1 (the end)
        sphereEmitters.GetComponent <Animator> ().Play("EnableSphereEmitters", -1, 1f);
        sphere.GetComponent <Animator> ().Play("EnableSphere", -1, 1f);
    }