Ejemplo n.º 1
0
        protected override async Task OnInitializedAsync()
        {
            doctorUI = new DoctorUI(DoctorDataService);
            Doctors  = await doctorUI.GetList();

            messageUI = new MessageUI(MessageDataService, mapper, UserName);
            ResetDialog();
        }
Ejemplo n.º 2
0
        protected override async Task OnInitializedAsync()
        {
            scheduleUI    = new ScheduleUI(ScheduleDataService, AppointmentDataService);
            doctorUI      = new DoctorUI(DoctorDataService);
            queryParamsVM = scheduleUI.New();
            Doctors       = await doctorUI.GetList();

            ResetDialog();
        }
    // Use this for initialization
    void Start()
    {
        doctorUI = GetComponentInChildren <DoctorUI>();
        if (GameManager.Instance.playerMode == GameManager.PlayerMode.Server)
        {
            // disable support player camera
            var camera = transform.GetComponent <Camera>();
            camera.enabled = true;

            StartCoroutine(GetSecurityCameraFinder());

            doctorUI.cameraImage.gameObject.SetActive(false);
            Debug.Log("Listening for event HackPanel");
            EventManager.StartListening(GameEvent.HackPanel, PanelWasHacked);
        }
        else
        {
            doctorUI.gameObject.SetActive(false);
            GetComponent <AudioListener>().enabled = false;
        }
    }