void Awake() { m_myTransform = transform; m_instance = m_myTransform.GetComponentsInChildren <DialogUIViewManager>(true)[0]; Initialize(); m_lblDialogUINPCDialogText = m_myTransform.Find("DialogUIBottom/DialogUIDialogContext/DialogUINPCDialogText").GetComponentsInChildren <UILabel>(true)[0]; m_lblDialogUINPCName = m_myTransform.Find("DialogUIBottom/DialogUIDialogContext/DialogUINPCName").GetComponentsInChildren <UILabel>(true)[0]; m_myTransform.Find("DialogUIBottom").GetComponentsInChildren <UIAnchor>(true)[0].uiCamera = GameObject.Find("MogoMainUI").transform.Find("Camera").GetComponentsInChildren <Camera>(true)[0]; m_texDialogUINPCImage = m_myTransform.Find("DialogUIBottom/DialogUINPCImage").GetComponentsInChildren <UITexture>(true)[0]; m_goContext = m_myTransform.Find("DialogUIBottom/DialogUIDialogContext").gameObject; }
void Awake() { m_myTransform = transform; m_instance = m_myTransform.GetComponentsInChildren<DialogUIViewManager>(true)[0]; Initialize(); m_lblDialogUINPCDialogText = m_myTransform.FindChild("DialogUIBottom/DialogUIDialogContext/DialogUINPCDialogText").GetComponentsInChildren<UILabel>(true)[0]; m_lblDialogUINPCName = m_myTransform.FindChild("DialogUIBottom/DialogUIDialogContext/DialogUINPCName").GetComponentsInChildren<UILabel>(true)[0]; m_myTransform.FindChild("DialogUIBottom").GetComponentsInChildren<UIAnchor>(true)[0].uiCamera = GameObject.Find("MogoMainUI").transform.FindChild("Camera").GetComponentsInChildren<Camera>(true)[0]; m_texDialogUINPCImage = m_myTransform.FindChild("DialogUIBottom/DialogUINPCImage").GetComponentsInChildren<UITexture>(true)[0]; m_goContext = m_myTransform.FindChild("DialogUIBottom/DialogUIDialogContext").gameObject; }