|
@@ -433,18 +433,17 @@ namespace GFGGame
|
|
|
GameObject bg = _sceneObject.transform.Find(bgName).gameObject;
|
|
|
bg.SetActive(false);
|
|
|
Color backgroundColor = Camera.main.backgroundColor;
|
|
|
- Camera.main.backgroundColor = new Color(255, 255, 255, 0);
|
|
|
- GRoot.inst.visible = false;
|
|
|
+ Camera.main.backgroundColor = new Color(0, 0, 0, 0);
|
|
|
+ // GRoot.inst.visible = false;
|
|
|
yield return new WaitForEndOfFrame();
|
|
|
|
|
|
Rect rect = new Rect(0, 0, UnityEngine.Screen.width, UnityEngine.Screen.height);
|
|
|
Texture2D tex = new Texture2D((int)rect.width, (int)rect.height, TextureFormat.ARGB32, false);//新建一个Texture2D对象
|
|
|
tex.ReadPixels(rect, 0, 0);//读取像素,屏幕左下角为0点
|
|
|
tex.Apply();//保存像素信息
|
|
|
- // NTexture _nTexture = new NTexture(tex);
|
|
|
- // EquipDataCache.cacher.FightRoleRes = tex.EncodeToJPG();
|
|
|
+
|
|
|
EquipDataCache.cacher.RoleTextuex = tex;
|
|
|
- GRoot.inst.visible = true;
|
|
|
+ // GRoot.inst.visible = true;
|
|
|
bg.SetActive(true);
|
|
|
Camera.main.backgroundColor = backgroundColor;
|
|
|
|
|
@@ -455,8 +454,6 @@ namespace GFGGame
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- // StartCalculateScore();
|
|
|
- // OnClickBtnPhotograph();
|
|
|
StartCalculateScore();
|
|
|
}
|
|
|
}
|