public void init(PDBCRemovePhoto para_removePhotoParams, string para_questGiverName) { int questGiverID = para_removePhotoParams.questGiverID; string questGiverName = para_questGiverName; // Apply portrait. Transform dummyPortrait = transform.FindChild("Portrait"); PortraitHelper.replaceEntireDummyPortrait(dummyPortrait.gameObject,questGiverID,0,questGiverName,0.04f); CommonUnityUtils.setSortingLayerOfEntireObject(dummyPortrait.gameObject,"SpriteGUI"); CommonUnityUtils.setSortingOrderOfEntireObject(dummyPortrait.gameObject,6000); // Apply photo render. GhostbookManagerLight gbMang = GhostbookManagerLight.getInstance(); Photo reqPhoto = gbMang.getPhoto(questGiverID, para_removePhotoParams.langAreaID, para_removePhotoParams.diffIndexInLangArea, para_removePhotoParams.photoDiffPosition); PhotoVisualiser pVisualiser = new PhotoVisualiser(); GameObject nwRenderObj = pVisualiser.producePhotoRender("NewPhotoRender",reqPhoto,0.05f,transform.FindChild("PhotoGuide").gameObject,true); CommonUnityUtils.setSortingLayerOfEntireObject(nwRenderObj,"SpriteGUI"); CommonUnityUtils.setSortingOrderOfEntireObject(nwRenderObj,6000); nwRenderObj.transform.parent = transform; // Apply gradual fade effect on photo. applyFadeAnimationToPhoto(nwRenderObj); }
public void removePhoto(PDBCRemovePhoto para_removePhotoCommand) { removePhoto(para_removePhotoCommand.questGiverID, para_removePhotoCommand.langAreaID, para_removePhotoCommand.diffIndexInLangArea, para_removePhotoCommand.photoDiffPosition); }