|
@@ -437,15 +437,16 @@ namespace GFGGame
|
|
|
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.nTexture = _nTexture;
|
|
|
+ // NTexture _nTexture = new NTexture(tex);
|
|
|
+ // EquipDataCache.cacher.FightRoleRes = tex.EncodeToJPG();
|
|
|
+ EquipDataCache.cacher.RoleTextuex = tex;
|
|
|
GRoot.inst.visible = true;
|
|
|
bg.SetActive(true);
|
|
|
Camera.main.backgroundColor = backgroundColor;
|
|
|
|
|
|
- StartCalculateScore(_nTexture);
|
|
|
+ StartCalculateScore();
|
|
|
}
|
|
|
- private void StartCalculateScore(NTexture nTexture)
|
|
|
+ private void StartCalculateScore()
|
|
|
{
|
|
|
//不可移动代码位置
|
|
|
bool hasFightTarget = _fightCfg.targetName != null && _fightCfg.targetName.Length > 0;
|
|
@@ -460,11 +461,11 @@ namespace GFGGame
|
|
|
|
|
|
if (hasFightTarget)
|
|
|
{
|
|
|
- ViewManager.Show(ViewName.STORY_FIGHT_TARGET_VIEW, nTexture);
|
|
|
+ ViewManager.Show(ViewName.STORY_FIGHT_TARGET_VIEW);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- ViewManager.Show(ViewName.STORY_FIGHT_SINGLE_VIEW, nTexture);
|
|
|
+ ViewManager.Show(ViewName.STORY_FIGHT_SINGLE_VIEW);
|
|
|
}
|
|
|
this.Hide();
|
|
|
|