Esempio n. 1
0
        void Start()
        {
            // seed the random number generator
            Random.InitState(randomSeed);

            // save all primitives
            primitives = new Dictionary <string, GameObject>();
            foreach (Transform t in GameObject.Find("GeometricPrimitives").transform)
            {
                primitives.Add(t.name, t.gameObject);
            }

            //Add all the available holders to the manager
            vholders = new List <GameObject>();
            hholders = new List <GameObject>();

            foreach (Transform child in transform)
            {
                if (child.name.Contains("VerticalHolder"))
                {
                    vholders.Add(child.gameObject);
                }
                else if (child.name.Contains("HorizontalHolder"))
                {
                    hholders.Add(child.gameObject);
                }
            }

            // find button
            button = GetComponentInChildren <ButtonPress>();

            // find data logger
            logger = FindObjectOfType <DataLogger>();
            logger.SetLogging(DataLogger.LoggingStatus.Clear);
            edc = FindObjectOfType <EyeDataCollect>();
            edc.SetLogging(EyeDataCollect.LoggingStatus.Clear);

            // clear PHAM
            ClearPHAM();
        }
 // Start is called before the first frame update
 void Start()
 {
     edc = FindObjectOfType <EyeDataCollect>();
     edc.SetLogging(EyeDataCollect.LoggingStatus.Clear);
 }