Пример #1
0
        public void Awake()
        {
            ResultText    = "Press 'Start coroutines' to start test";
            _nonMonoClass = new NonMonoBehaviorClass();
            _resultTextNonStandaloneOn = false;
            _resultTextStandaloneOn    = false;

            var y          = 0;
            var smallWidth = 25;
            var bigWidth   = 95;

            _attentionLabelRect = new Rect(5, y, Screen.width - 5, smallWidth);
            _resultLabelRect    = new Rect(5, y += smallWidth, Screen.width - 5, bigWidth);

            _nonStandRect1 = new Rect(5, y += smallWidth, Screen.width / 2 - 5, smallWidth);
            _nonStandRect2 = new Rect(Screen.width / 2 + 5, y, Screen.width / 2 - 5, smallWidth);

            _standRect1 = new Rect(5, y += smallWidth, Screen.width / 2 - 5, smallWidth);
            _standRect2 = new Rect(Screen.width / 2 + 5, y, Screen.width / 2 - 5, smallWidth);

            _startButtonRect = new Rect(5, y += smallWidth, Screen.width / 2 - 5, bigWidth);
            _stopButtonRect  = new Rect(Screen.width / 2 + 5, y, Screen.width / 2 - 5, bigWidth);
        }
 public void Awake()
 {
     _nonMonoClass = new NonMonoBehaviorClass();
     ResultTextNonStandalone.enabled = false;
     ResultTextStandalone.enabled    = false;
 }