资深玩家
![Rank: 9](static/image/common/star_level3.gif) ![Rank: 9](static/image/common/star_level3.gif) ![Rank: 9](static/image/common/star_level1.gif)
- 贡献度
- 2023
- 金元
- 26012
- 积分
- 10703
- 精华
- 1
- 注册时间
- 2021-1-12
|
1整好了,
1.themes右键[添加类成员(C#)],加:
private Sprite[,] themes_SCREENSHOTS;
public Sprite GetScreenshot(int theme_, int grafikPoints)
{
int num = 0;
int num2 = 0;
while (num2 < 1000 && File.Exists(string.Concat(new string[]
{
Application.dataPath,
"/Extern/Screenshots/",
theme_.ToString(),
"/",
num2.ToString(),
".png"
})))
{
num = num2;
num2++;
}
int num3 = 30000 / (num + 1);
num3 = grafikPoints / num3;
if (num3 < 0)
{
num3 = 0;
}
if (num3 > num)
{
num3 = num;
}
if (this.themes_SCREENSHOTS[theme_, num3])
{
return this.themes_SCREENSHOTS[theme_, num3];
}
this.themes_SCREENSHOTS[theme_, num3 = this.mS_.LoadPNG(string.Concat(new string[]
{
Application.dataPath,
"/Extern/Screenshots/",
theme_.ToString(),
"/",
num3.ToString(),
".png"
}));
return this.themes_SCREENSHOTS[theme_, num3];
}
2.gameScript.GetScreenshot()改成:
return this.themes_.GetScreenshot(this.gameMainTheme, Mathf.RoundToInt(this.points_grafik));
|
评分
-
1
查看全部评分
-
|