|
@@ -7,8 +7,8 @@ namespace GFGGame
|
|
|
public class FightDataManager : SingletonBase<FightDataManager>
|
|
|
{
|
|
|
|
|
|
- public byte[] FightRoleRes { get; set; }
|
|
|
- public Texture2D RoleTextuex { get; set; }
|
|
|
+ //public byte[] FightRoleRes { get; set; }
|
|
|
+ //public Texture2D RoleTextuex { get; set; }
|
|
|
|
|
|
//角色基础分+部件基础分
|
|
|
// private int _score;
|
|
@@ -147,22 +147,22 @@ namespace GFGGame
|
|
|
}
|
|
|
|
|
|
|
|
|
- public Texture2D GetPrintscreenNTexture(Camera camera)
|
|
|
- {
|
|
|
+ //public Texture2D GetPrintscreenNTexture(Camera camera)
|
|
|
+ //{
|
|
|
|
|
|
- RenderTexture rt = new RenderTexture(UnityEngine.Screen.width, UnityEngine.Screen.height, 0);//渲染一张1920*1080的图
|
|
|
- camera.targetTexture = rt;//传到主摄像机上
|
|
|
- camera.Render();//渲染
|
|
|
- RenderTexture.active = rt;
|
|
|
- Texture2D screenShot = new Texture2D(UnityEngine.Screen.width, UnityEngine.Screen.height, TextureFormat.ARGB32, false);
|
|
|
- screenShot.ReadPixels(new Rect(0, 0, UnityEngine.Screen.width, UnityEngine.Screen.height), 0, 0);//读像素
|
|
|
- screenShot.Apply();
|
|
|
- camera.targetTexture = null;
|
|
|
- RenderTexture.active = null;
|
|
|
- UnityEngine.Object.Destroy(rt);
|
|
|
- return screenShot;
|
|
|
+ // RenderTexture rt = new RenderTexture(UnityEngine.Screen.width, UnityEngine.Screen.height, 0);//渲染一张1920*1080的图
|
|
|
+ // camera.targetTexture = rt;//传到主摄像机上
|
|
|
+ // camera.Render();//渲染
|
|
|
+ // RenderTexture.active = rt;
|
|
|
+ // Texture2D screenShot = new Texture2D(UnityEngine.Screen.width, UnityEngine.Screen.height, TextureFormat.ARGB32, false);
|
|
|
+ // screenShot.ReadPixels(new Rect(0, 0, UnityEngine.Screen.width, UnityEngine.Screen.height), 0, 0);//读像素
|
|
|
+ // screenShot.Apply();
|
|
|
+ // camera.targetTexture = null;
|
|
|
+ // RenderTexture.active = null;
|
|
|
+ // UnityEngine.Object.Destroy(rt);
|
|
|
+ // return screenShot;
|
|
|
|
|
|
- }
|
|
|
+ //}
|
|
|
|
|
|
/// <summary>
|
|
|
/// 获取标签总分数
|