protected override void Start()
 {
     base.Start();
     modes = FindObjectOfType <AnatomyModes> ();
     anatomyPinsManager        = FindObjectOfType <AnatomyPinsManager> ();
     cameraZoom                = Camera.main.GetComponent <CameraZoom> ();
     viewModelWholeToggle.isOn = true;
 }
Exemplo n.º 2
0
        void Start()
        {
            anatomyUIManager    = FindObjectOfType <AnatomyUIManager> ();
            pinsManager         = FindObjectOfType <AnatomyPinsManager> ();
            textManagerInstance = FindObjectOfType <AnatomyTextsManager> ();
            whichMode           = FindObjectOfType <AnatomyModes>();

            AssignToLists(AnatomySceneManager.Instance.EyeSocketModel);
            AssignToLists(AnatomySceneManager.Instance.EyeSocketHalfModel);

            isHighlighted   = false;
            rayHitSthg      = false;
            stopEyeRotation = false;
            wasSpace        = false;

            positionBefore1 = new GameObject();
            positionBefore2 = new GameObject();

            hitObject1 = AnatomySceneManager.Instance.EmptyGameObject;
            hitObject2 = AnatomySceneManager.Instance.EmptyGameObject;

            index = index3 = 0;
        }