Пример #1
0
 public void InitDialog()
 {
     if (DialogPlayer.IsReading())
     {
         UpdateDialog();
     }
 }
Пример #2
0
    void UpdateContent(BaseEventData eventData)
    {
        if (DialogPlayer.IsReading())
        {
            UpdateDialog();
        }
        else
        {
            GameObject.Find("RigidBodyFPSController").GetComponent <UnityStandardAssets.Characters.FirstPerson.RigidbodyFirstPersonController> ().mouseLook.SetCursorLock(true);


            UIManager.Instance().ClosePanel <UIDialogPanel> ();
            Camera.main.GetComponent <RayCastDetection> ().OpenDetection();
        }
    }