public GameObject InsertBitmapIcon(Dialog.DialogImage dialogImg, GameObject label) { GameObject gameObject; if (dialogImg.IsButton) { gameObject = FF9UIDataTool.ButtonGameObject((Control)dialogImg.Id, dialogImg.checkFromConfig, dialogImg.tag); } else { gameObject = FF9UIDataTool.IconGameObject(dialogImg.Id); } if (gameObject != (UnityEngine.Object)null) { gameObject.transform.parent = label.transform; gameObject.transform.localScale = Vector3.one; gameObject.transform.localPosition = new Vector3(dialogImg.LocalPosition.x, dialogImg.LocalPosition.y, 0f); gameObject.SetActive(true); } return gameObject; }