Exemplo n.º 1
0
 void Start()
 {
     anamManager   = FindObjectOfType <humanAnatomyManager> ();
     anam          = FindObjectOfType <anatomyManager> ();
     camTransition = FindObjectOfType <anatomyCamTransitions> ();
     defaultView();
 }
    void Awake()
    {
        if (!VrOn.isVROn)
        {
            whatSystem = PlayerPrefs.GetInt("whatSystem", 0);
            switch (whatSystem)
            {
            case 0:
                header.text = "Digestive System";
                break;

            case 1:
                header.text = "Respiratory System";
                break;

            case 2:
                header.text = "Urinary System";
                break;

            case 3:
                header.text = "Skeletal System";
                break;

            case 4:
                header.text = "Muscular System";
                break;

            case 5:
                header.text = "Circulatory System";
                break;

            case 6:
                header.text = "Nervous System";
                break;

            case 7:
                header.text = "Endocrine System";
                break;

            default:
                break;
            }
            if (whatSystem == 3 || whatSystem == 4 || whatSystem == 5)
            {
                Instantiate(anatomySystemsPrefabs [whatSystem], humanBase.position, anatomySystemsPrefabs [whatSystem].transform.rotation);
                humanBase.gameObject.SetActive(false);
            }
            else
            {
                Instantiate(anatomySystemsPrefabs [whatSystem], humanBase.position, anatomySystemsPrefabs [whatSystem].transform.rotation);
            }
        }
        anatomymanager = FindObjectOfType <anatomyManager> ();
    }