public void InitDialog() { if (DialogPlayer.IsReading()) { UpdateDialog(); } }
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(); } }