Пример #1
0
        // Use this for initialization
        void Start()
        {
            _launchManager = GameObject.FindWithTag("LaunchManager").GetComponent <LaunchManager>();
            _menuManager   = _launchManager.MenuManager;
            _log           = _launchManager.LoggingManager;
            _labchart      = _launchManager.gameObject.GetComponent <LabchartUtils>();

            var fields = transform.Find("Panel").Find("Fields");

            fields.Find("Labchart Button").GetComponent <Button>().onClick.AddListener(() => _labchart.AddLabchartCommentsToAll());
            fields.Find("BackButton").GetComponent <Button>().onClick.AddListener(() => { _menuManager.InstantiateAndShowMenu("Evaluation Menu", "Launcher"); });

            _dynFields = fields.Find("DynFieldsWithScrollbar").Find("DynFields");

            DisplayParticipants();
        }
Пример #2
0
        void Start()
        {
            _launchManager = GameObject.FindWithTag("LaunchManager").GetComponent <LaunchManager>();
            _menuManager   = _launchManager.MenuManager;
            _log           = _launchManager.LoggingManager;
            _labchart      = _launchManager.gameObject.GetComponent <LabchartUtils>();

            _sessionId = _menuManager.ActiveSessionId;

            _fields = transform.Find("Panel").Find("Fields");

            _dynamicField = _fields.Find("DynFieldsWithScrollbar").Find("DynFields");

            _fields.Find("Labchart Button").GetComponent <Button>().onClick.AddListener(() => _labchart.AddLabchartComments(_sessionId));
            _fields.Find("BackButton").GetComponent <Button>().onClick.AddListener(() => _menuManager.InstantiateAndShowMenu("Participants Menu", "Launcher"));
            DisplayParticipantDetails();
        }