Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
T
tuseGameColor
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shujianhe
tuseGameColor
Commits
5537eda1
Commit
5537eda1
authored
Jul 24, 2023
by
shujianhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加zip接口
parent
78b7a29a
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
69 additions
and
42 deletions
+69
-42
GameScenUserInfo.cs
Assets/scripts/Datas/GameScenUserInfo.cs
+1
-0
netLabelData.cs
Assets/scripts/Datas/netLabelData.cs
+1
-0
gameSceneLogic.cs
Assets/scripts/Views/gameScene/gameSceneLogic.cs
+8
-10
gameUserInfos.cs
Assets/scripts/Views/gameScene/gameUserInfos.cs
+1
-1
mainGameScaleMove.cs
Assets/scripts/common/mainGameScaleMove.cs
+28
-19
mainGameView.cs
Assets/scripts/common/mainGameView.cs
+2
-1
nodeNetProxy.cs
Assets/scripts/common/nodeNetProxy.cs
+0
-8
mainImageItem.cs
Assets/scripts/perfabItems/mainImageItem.cs
+1
-1
VideoHelp.cs
Assets/scripts/utils/VideoHelp.cs
+13
-0
VideoHelp.cs.meta
Assets/scripts/utils/VideoHelp.cs.meta
+11
-0
utilsTools.cs
Assets/scripts/utils/utilsTools.cs
+3
-2
No files found.
Assets/scripts/Datas/GameScenUserInfo.cs
View file @
5537eda1
...
@@ -19,6 +19,7 @@ public class GameScenUserInfo
...
@@ -19,6 +19,7 @@ public class GameScenUserInfo
public
string
json
=
""
;
//数据
public
string
json
=
""
;
//数据
public
string
finishImg
=
""
;
//完成图
public
string
finishImg
=
""
;
//完成图
public
string
id
=
""
;
//int 的id.toString()
public
string
id
=
""
;
//int 的id.toString()
public
string
file
=
""
;
//zip url
//以上是url
//以上是url
public
int
status
=
0
;
//0 未开始 1 这个id进过游戏 2 至少有一个区域点亮 3完成
public
int
status
=
0
;
//0 未开始 1 这个id进过游戏 2 至少有一个区域点亮 3完成
public
double
progress
=
0
;
//0 -- 1 具体自己算百分比
public
double
progress
=
0
;
//0 -- 1 具体自己算百分比
...
...
Assets/scripts/Datas/netLabelData.cs
View file @
5537eda1
...
@@ -59,6 +59,7 @@ public class netLableImageItem: System.Object
...
@@ -59,6 +59,7 @@ public class netLableImageItem: System.Object
public
string
pictureThn4
;
public
string
pictureThn4
;
public
string
pictureBin
;
public
string
pictureBin
;
public
string
extraJson
;
public
string
extraJson
;
public
string
file
;
public
string
getLineUrl
()
public
string
getLineUrl
()
{
{
return
highImg
;
return
highImg
;
...
...
Assets/scripts/Views/gameScene/gameSceneLogic.cs
View file @
5537eda1
...
@@ -69,16 +69,14 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler
...
@@ -69,16 +69,14 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler
transform
.
Find
(
"gameEndOperBase"
).
GetComponent
<
gameEndLogic
>().
initMember
();
transform
.
Find
(
"gameEndOperBase"
).
GetComponent
<
gameEndLogic
>().
initMember
();
utilsTools
.
addTimer_Sec
(
gameObject
,
"loopGetHot"
,
(
String
name
)
=>
utilsTools
.
addTimer_Sec
(
gameObject
,
"loopGetHot"
,
(
String
name
)
=>
{
{
//addHotParams<float>("TUSE_doubleTouchScale", "doubleTouchScale",float.TryParse,(bool _) => {
addHotParams
<
float
>(
"TUSE_doubleTouchScale"
,
"doubleTouchScale"
,
float
.
TryParse
);
// Debug.Log("doubleTouchScale = " + utilsTools.getGDataByKey<float>("doubleTouchScale",-0.02f).ToString());
addHotParams
<
short
>(
"TUSE_areaOutValue"
,
"areaOutValue"
,
short
.
TryParse
);
// return;
addHotParams
<
float
>(
"TUSE_MoveScale"
,
"moveScale"
,
float
.
TryParse
);
//});
addHotParams
<
float
>(
"TUSE_doubleTouchScale"
,
"doubleTouchScale"
,
float
.
TryParse
);
//addHotParams<short>("TUSE_areaOutValue", "areaOutValue", short.TryParse);
addHotParams
<
float
>(
"TUSE_doubleTouchScale"
,
"doubleTouchScale"
,
float
.
TryParse
);
//addHotParams<float>("TUSE_MoveScale", "moveScale", float.TryParse);
addHotParams
<
float
>(
"TUSE_dyMinShowFontSize"
,
"dyMinShowFontSize"
,
float
.
TryParse
);
//addHotParams<float>("TUSE_doubleTouchScale", "doubleTouchScale", float.TryParse);
//addHotParams<float>("TUSE_doubleTouchScale", "doubleTouchScale", float.TryParse);
return
true
;
return
true
;
},
3
,
200
0
);
},
3
,
0
);
}
}
void
addHotParams
<
T
>(
string
netKey
,
string
localKey
,
StringOutTValue
<
T
>
back
,
NotifyBoolParam
notifyBoolParam
=
null
)
void
addHotParams
<
T
>(
string
netKey
,
string
localKey
,
StringOutTValue
<
T
>
back
,
NotifyBoolParam
notifyBoolParam
=
null
)
...
@@ -393,7 +391,7 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler
...
@@ -393,7 +391,7 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler
utilsTools
.
setGDataByKey
(
"downZipBegin"
,
utilsTools
.
getTotalMillisecond
());
utilsTools
.
setGDataByKey
(
"downZipBegin"
,
utilsTools
.
getTotalMillisecond
());
//https://cdn.zhangxingames.com/file/ccNO7LSXpxA8GzQUHq1.zip in
//https://cdn.zhangxingames.com/file/ccNO7LSXpxA8GzQUHq1.zip in
//"https://d21z6ifg4bbv2v.cloudfront.net/files/ccNO7LSXpxA8GzQUHq1.zip" wwww
//"https://d21z6ifg4bbv2v.cloudfront.net/files/ccNO7LSXpxA8GzQUHq1.zip" wwww
StartCoroutine
(
LoadAndBytesUnzipWithWeb
(
"https://cdn.zhangxingames.com/file/ccNO7LSXpxA8GzQUHq1.zip"
,
zpath
,(
bool
isOk
)
=>
StartCoroutine
(
LoadAndBytesUnzipWithWeb
(
gameScenUser
.
file
,
zpath
,(
bool
isOk
)
=>
{
{
if
(
isOk
)
if
(
isOk
)
{
{
...
...
Assets/scripts/Views/gameScene/gameUserInfos.cs
View file @
5537eda1
...
@@ -47,7 +47,7 @@ public class gameUserInfos : MonoBehaviour, IEventHandler
...
@@ -47,7 +47,7 @@ public class gameUserInfos : MonoBehaviour, IEventHandler
//{"img":"https://d21z6ifg4bbv2v.cloudfront.net/tspng/ccNO7LSXpxA8GzQUHq.png","json":"https://d21z6ifg4bbv2v.cloudfront.net/tsjson/ccNO7LSXpxA8GzQUHq.json","finishImg":"https://d21z6ifg4bbv2v.cloudfront.net/tsgame/ccNO7LSXpxA8GzQUHq_pictureColorThn4.jpg","id":"ccNO7LSXpxA8GzQUHq","status":0,"progress":0.0,"areaInfoUseData":[]}
//{"img":"https://d21z6ifg4bbv2v.cloudfront.net/tspng/ccNO7LSXpxA8GzQUHq.png","json":"https://d21z6ifg4bbv2v.cloudfront.net/tsjson/ccNO7LSXpxA8GzQUHq.json","finishImg":"https://d21z6ifg4bbv2v.cloudfront.net/tsgame/ccNO7LSXpxA8GzQUHq_pictureColorThn4.jpg","id":"ccNO7LSXpxA8GzQUHq","status":0,"progress":0.0,"areaInfoUseData":[]}
//utilsTools.setGameScenUserInfo(id,"http://192.168.124.160:8795/srcImgs/colorFan/tuline.png","http://192.168.124.160:8795/srcImgs/colorFan/tucolor.png","http://192.168.124.160:8795/srcImgs/colorFan/tu.json");
//utilsTools.setGameScenUserInfo(id,"http://192.168.124.160:8795/srcImgs/colorFan/tuline.png","http://192.168.124.160:8795/srcImgs/colorFan/tucolor.png","http://192.168.124.160:8795/srcImgs/colorFan/tu.json");
//utilsTools.setGameScenUserInfo(id, "http://192.168.124.160:8795/srcImgs/temp2/tuline.png", "http://192.168.124.160:8795/srcImgs/temp2/tucolor.jpg", "http://192.168.124.160:8795/srcImgs/temp2/tu.json");
//utilsTools.setGameScenUserInfo(id, "http://192.168.124.160:8795/srcImgs/temp2/tuline.png", "http://192.168.124.160:8795/srcImgs/temp2/tucolor.jpg", "http://192.168.124.160:8795/srcImgs/temp2/tu.json");
utilsTools
.
setGameScenUserInfo
(
id
,
"https://d21z6ifg4bbv2v.cloudfront.net/tspng/ccNO7LSXpxA8GzQUHq.png"
,
"https://d21z6ifg4bbv2v.cloudfront.net/tsgame/ccNO7LSXpxA8GzQUHq_pictureColorThn4.jpg"
,
"https://d21z6ifg4bbv2v.cloudfront.net/tsjson/ccNO7LSXpxA8GzQUHq.json"
);
utilsTools
.
setGameScenUserInfo
(
id
,
"https://d21z6ifg4bbv2v.cloudfront.net/tspng/ccNO7LSXpxA8GzQUHq.png"
,
"https://d21z6ifg4bbv2v.cloudfront.net/tsgame/ccNO7LSXpxA8GzQUHq_pictureColorThn4.jpg"
,
"https://d21z6ifg4bbv2v.cloudfront.net/tsjson/ccNO7LSXpxA8GzQUHq.json"
,
"https://d21z6ifg4bbv2v.cloudfront.net/tsjson/ccNO7LSXpxA8GzQUHq.zip"
);
gameScenUser
=
utilsTools
.
getGameScenUserInfo
(
id
);
gameScenUser
=
utilsTools
.
getGameScenUserInfo
(
id
);
}
}
if
(
gameScenUser
==
null
)
if
(
gameScenUser
==
null
)
...
...
Assets/scripts/common/mainGameScaleMove.cs
View file @
5537eda1
...
@@ -219,6 +219,7 @@ public class mainGameScaleMove : MonoBehaviour
...
@@ -219,6 +219,7 @@ public class mainGameScaleMove : MonoBehaviour
}
}
void
onDoubleTouchHandler
(
float
nowTouchDistance
)
void
onDoubleTouchHandler
(
float
nowTouchDistance
)
{
{
var
nowOffset
=
(
nowTouchDistance
-
OldTouchCurrDis
)
*
utilsTools
.
getGDataByKey
<
float
>(
"doubleTouchScale"
,
0.002f
);
var
nowOffset
=
(
nowTouchDistance
-
OldTouchCurrDis
)
*
utilsTools
.
getGDataByKey
<
float
>(
"doubleTouchScale"
,
0.002f
);
//var nowOffset = nowTouchDistance * utilsTools.getGDataByKey<float>("doubleTouchScale",0.002f);
//var nowOffset = nowTouchDistance * utilsTools.getGDataByKey<float>("doubleTouchScale",0.002f);
if
(
nowOffset
<
0
)
if
(
nowOffset
<
0
)
...
@@ -236,11 +237,12 @@ public class mainGameScaleMove : MonoBehaviour
...
@@ -236,11 +237,12 @@ public class mainGameScaleMove : MonoBehaviour
return
;
return
;
}
}
}
}
int
dt001
=
utilsTools
.
getTotalMillisecond
();
nowScale
=
new
Vector2
(
nowScale
.
x
+
nowOffset
,
nowScale
.
y
+
nowOffset
)
;
nowScale
=
new
Vector2
(
nowScale
.
x
+
nowOffset
,
nowScale
.
y
+
nowOffset
)
;
//nowScale = new Vector2(nowOffset, nowOffset);
OldTouchCurrDis
=
nowTouchDistance
;
OldTouchCurrDis
=
nowTouchDistance
;
Vector2
offsetPos
=
Vector2
.
zero
;
Vector2
offsetPos
=
Vector2
.
zero
;
int
dt002
=
0
;
int
dt003
=
0
;
for
(
int
i
=
0
;
i
<
transform
.
childCount
;
i
++)
for
(
int
i
=
0
;
i
<
transform
.
childCount
;
i
++)
{
{
var
itemChild
=
transform
.
GetChild
(
i
);
var
itemChild
=
transform
.
GetChild
(
i
);
...
@@ -268,11 +270,13 @@ public class mainGameScaleMove : MonoBehaviour
...
@@ -268,11 +270,13 @@ public class mainGameScaleMove : MonoBehaviour
if
(
i
==
0
&&
resetBtn
)
if
(
i
==
0
&&
resetBtn
)
{
{
RectTransform
rectTrans
=
itemChild
.
GetComponent
<
RectTransform
>();
RectTransform
rectTrans
=
itemChild
.
GetComponent
<
RectTransform
>();
dt002
=
utilsTools
.
getTotalMillisecond
();
bool
leftIsOut
=
checkPtIsOutScene
(
rectTrans
,
new
Vector2
(
rectTrans
.
rect
.
xMin
,
0
));
bool
leftIsOut
=
checkPtIsOutScene
(
rectTrans
,
new
Vector2
(
rectTrans
.
rect
.
xMin
,
0
));
bool
rightIsOut
=
checkPtIsOutScene
(
rectTrans
,
new
Vector2
(
rectTrans
.
rect
.
xMax
,
0
));
bool
rightIsOut
=
checkPtIsOutScene
(
rectTrans
,
new
Vector2
(
rectTrans
.
rect
.
xMax
,
0
));
bool
topIsOut
=
checkPtIsOutScene
(
rectTrans
,
new
Vector2
(
0
,
rectTrans
.
rect
.
yMax
));
bool
topIsOut
=
checkPtIsOutScene
(
rectTrans
,
new
Vector2
(
0
,
rectTrans
.
rect
.
yMax
));
bool
downIsOut
=
checkPtIsOutScene
(
rectTrans
,
new
Vector2
(
0
,
rectTrans
.
rect
.
yMin
));
bool
downIsOut
=
checkPtIsOutScene
(
rectTrans
,
new
Vector2
(
0
,
rectTrans
.
rect
.
yMin
));
if
((
leftIsOut
&&
rightIsOut
)
||
(
topIsOut
&&
downIsOut
))
dt003
=
utilsTools
.
getTotalMillisecond
();
if
((
leftIsOut
&&
rightIsOut
)
||
(
topIsOut
&&
downIsOut
))
{
{
resetBtn
.
SetActive
(
true
);
resetBtn
.
SetActive
(
true
);
}
}
...
@@ -283,7 +287,11 @@ public class mainGameScaleMove : MonoBehaviour
...
@@ -283,7 +287,11 @@ public class mainGameScaleMove : MonoBehaviour
}
}
}
}
int
dt004
=
utilsTools
.
getTotalMillisecond
();
updateScaleView
();
updateScaleView
();
int
dt005
=
utilsTools
.
getTotalMillisecond
();
String
msg
=
String
.
Format
(
"5 - 4 = {0},3 - 2 = {1},5 -1 = {2}"
,
dt005
-
dt004
,
dt003
-
dt002
,
dt005
-
dt001
);
Debug
.
Log
(
msg
);
}
}
bool
checkPtIsOutScene
(
RectTransform
rectTrans
,
Vector2
pos
)
bool
checkPtIsOutScene
(
RectTransform
rectTrans
,
Vector2
pos
)
{
{
...
@@ -348,22 +356,23 @@ public class mainGameScaleMove : MonoBehaviour
...
@@ -348,22 +356,23 @@ public class mainGameScaleMove : MonoBehaviour
float
width
=
nowScale
.
x
*
nowSize
.
x
;
float
width
=
nowScale
.
x
*
nowSize
.
x
;
float
height
=
nowScale
.
y
*
nowSize
.
y
;
float
height
=
nowScale
.
y
*
nowSize
.
y
;
//if(delatPos.x < 0 && (tempVector3.x + delatPos.x) < (width / -2))
if
(
delatPos
.
x
<
0
&&
(
tempVector3
.
x
+
delatPos
.
x
)
<
(
width
/
-
2
))
//{
{
// delatPos.x = 0;
delatPos
.
x
=
0
;
//}else if(delatPos.x > 0 && (tempVector3.x + delatPos.x) > (width / 2))
}
//{
else
if
(
delatPos
.
x
>
0
&&
(
tempVector3
.
x
+
delatPos
.
x
)
>
(
width
/
2
))
// delatPos.x = 0;
{
//}
delatPos
.
x
=
0
;
//if(delatPos.y < 0 && (tempVector3.y + delatPos.y) < (height / -2))
}
//{
if
(
delatPos
.
y
<
0
&&
(
tempVector3
.
y
+
delatPos
.
y
)
<
(
height
/
-
2
))
// delatPos.y = 0;
{
//}
delatPos
.
y
=
0
;
//else if(delatPos.y > 0 && (tempVector3.y + delatPos.y) > (height / 2))
}
//{
else
if
(
delatPos
.
y
>
0
&&
(
tempVector3
.
y
+
delatPos
.
y
)
>
(
height
/
2
))
// delatPos.y = 0;
{
//}
delatPos
.
y
=
0
;
//if (delatPos.x == delatPos.y && delatPos.x == 0) return;//都不用移动就不更新坐标
}
if
(
delatPos
.
x
==
delatPos
.
y
&&
delatPos
.
x
==
0
)
return
;
//都不用移动就不更新坐标
if
(
delatPos
.
x
==
0f
||
delatPos
.
y
==
0f
)
if
(
delatPos
.
x
==
0f
||
delatPos
.
y
==
0f
)
{
{
...
...
Assets/scripts/common/mainGameView.cs
View file @
5537eda1
...
@@ -517,6 +517,7 @@ public class mainGameView : MonoBehaviour
...
@@ -517,6 +517,7 @@ public class mainGameView : MonoBehaviour
public
void
updateScaleView
()
public
void
updateScaleView
()
{
{
Vector3
vector3
=
lineImg
.
transform
.
localScale
;
Vector3
vector3
=
lineImg
.
transform
.
localScale
;
float
dyMinShowFontSize
=
utilsTools
.
getGDataByKey
<
float
>(
"dyMinShowFontSize"
,
minShowFontSize
);
if
(
areaIdBase
!=
null
&&
perfabPath
.
Equals
(
""
)
==
false
)
if
(
areaIdBase
!=
null
&&
perfabPath
.
Equals
(
""
)
==
false
)
{
{
//倍数怎么弄
//倍数怎么弄
...
@@ -1133,7 +1134,7 @@ public class mainGameView : MonoBehaviour
...
@@ -1133,7 +1134,7 @@ public class mainGameView : MonoBehaviour
//没有可渲染区域
//没有可渲染区域
removeAids
.
Add
(
item
.
m_aid
);
removeAids
.
Add
(
item
.
m_aid
);
List
<
Vector2Short
>
tempLineColors
=
new
List
<
Vector2Short
>();
List
<
Vector2Short
>
tempLineColors
=
new
List
<
Vector2Short
>();
//
groupPtInfo.getLineByAid(item.m_aid,ref tempLineColors);
groupPtInfo
.
getLineByAid
(
item
.
m_aid
,
ref
tempLineColors
);
foreach
(
var
item1
in
tempLineColors
)
foreach
(
var
item1
in
tempLineColors
)
{
{
if
(
digitMatrix
.
Data
[
item1
.
x
,
item1
.
y
].
Equals
(
bianlun
))
if
(
digitMatrix
.
Data
[
item1
.
x
,
item1
.
y
].
Equals
(
bianlun
))
...
...
Assets/scripts/common/nodeNetProxy.cs
View file @
5537eda1
...
@@ -70,16 +70,10 @@ public class nodeNetProxy : MonoBehaviour
...
@@ -70,16 +70,10 @@ public class nodeNetProxy : MonoBehaviour
}
}
IEnumerator
httpget
(
nodeNetProxyItem
item
)
IEnumerator
httpget
(
nodeNetProxyItem
item
)
{
{
//HttpWebRequest request = null;
//request = WebRequest.Create(item.url) as HttpWebRequest;
//request.Method = "GET";
//HttpWebResponse res = (HttpWebResponse)request.GetResponse();
UnityWebRequest
request
=
UnityWebRequest
.
Get
(
item
.
url
);
UnityWebRequest
request
=
UnityWebRequest
.
Get
(
item
.
url
);
yield
return
request
.
SendWebRequest
();
yield
return
request
.
SendWebRequest
();
if
(
request
.
isHttpError
||
request
.
isNetworkError
)
if
(
request
.
isHttpError
||
request
.
isNetworkError
)
{
{
//POST(item.url, item.data["srcParams"].ToString(), item.isText, item.back);
item
.
call
(
""
,
false
,
null
);
item
.
call
(
""
,
false
,
null
);
yield
return
-
1
;
yield
return
-
1
;
}
}
...
@@ -89,8 +83,6 @@ public class nodeNetProxy : MonoBehaviour
...
@@ -89,8 +83,6 @@ public class nodeNetProxy : MonoBehaviour
if
(
item
.
isText
)
if
(
item
.
isText
)
{
{
String
text
=
request
.
downloadHandler
.
text
;
String
text
=
request
.
downloadHandler
.
text
;
//StreamReader sr = new StreamReader(res.GetResponseStream(), Encoding.UTF8);
//string content = sr.ReadToEnd();
ret
=
item
.
call
(
""
,
true
,
text
);
ret
=
item
.
call
(
""
,
true
,
text
);
}
}
else
else
...
...
Assets/scripts/perfabItems/mainImageItem.cs
View file @
5537eda1
...
@@ -70,7 +70,7 @@ public class mainImageItem : IUListItemView
...
@@ -70,7 +70,7 @@ public class mainImageItem : IUListItemView
}
}
else
else
{
{
utilsTools
.
setGameScenUserInfo
(
id
,
item
.
getLineUrl
(),
item
.
getColorUrl
(),
item
.
getJsonUrl
());
utilsTools
.
setGameScenUserInfo
(
id
,
item
.
getLineUrl
(),
item
.
getColorUrl
(),
item
.
getJsonUrl
()
,
item
.
file
);
data
=
utilsTools
.
getGameScenUserInfo
(
id
);
data
=
utilsTools
.
getGameScenUserInfo
(
id
);
path
=
data
.
getLocalThumbnailPath
();
path
=
data
.
getLocalThumbnailPath
();
}
}
...
...
Assets/scripts/utils/VideoHelp.cs
0 → 100644
View file @
5537eda1
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
Assets.scripts.utils
{
public
class
VideoHelp
{
}
}
Assets/scripts/utils/VideoHelp.cs.meta
0 → 100644
View file @
5537eda1
fileFormatVersion: 2
guid: 4a262f300263493429ca8ffad222db22
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Assets/scripts/utils/utilsTools.cs
View file @
5537eda1
...
@@ -628,7 +628,7 @@ public class utilsTools
...
@@ -628,7 +628,7 @@ public class utilsTools
public
static
void
replayGameProcessById
(
string
id
,
GameObject
gameObject
,
List
<
Tuple
<
short
,
float
,
float
>>
playOrders
)
public
static
void
replayGameProcessById
(
string
id
,
GameObject
gameObject
,
List
<
Tuple
<
short
,
float
,
float
>>
playOrders
)
{
{
}
}
public
static
bool
setGameScenUserInfo
(
string
id
,
string
lineUrl
,
string
colorUrl
,
string
jsonUrl
)
public
static
bool
setGameScenUserInfo
(
string
id
,
string
lineUrl
,
string
colorUrl
,
string
jsonUrl
,
string
zipUrl
)
{
{
string
gameSaveKey
=
"gameUserData_"
+
id
.
ToString
();
string
gameSaveKey
=
"gameUserData_"
+
id
.
ToString
();
string
oldData
=
utilsDB
.
getDBStringDataByKey
(
gameSaveKey
,
""
);
string
oldData
=
utilsDB
.
getDBStringDataByKey
(
gameSaveKey
,
""
);
...
@@ -642,6 +642,7 @@ public class utilsTools
...
@@ -642,6 +642,7 @@ public class utilsTools
gameScenUserDataInfo
.
finishImg
=
colorUrl
;
gameScenUserDataInfo
.
finishImg
=
colorUrl
;
gameScenUserDataInfo
.
json
=
jsonUrl
;
gameScenUserDataInfo
.
json
=
jsonUrl
;
gameScenUserDataInfo
.
id
=
id
;
gameScenUserDataInfo
.
id
=
id
;
gameScenUserDataInfo
.
file
=
zipUrl
;
utilsDB
.
setDBJsonDataByKey
(
gameSaveKey
,
JsonUtility
.
ToJson
(
gameScenUserDataInfo
));
utilsDB
.
setDBJsonDataByKey
(
gameSaveKey
,
JsonUtility
.
ToJson
(
gameScenUserDataInfo
));
return
true
;
return
true
;
}
}
...
@@ -728,7 +729,7 @@ public class utilsTools
...
@@ -728,7 +729,7 @@ public class utilsTools
{
{
Directory
.
CreateDirectory
(
path1
);
Directory
.
CreateDirectory
(
path1
);
}
}
}
}
public
static
float
randValueByFloat
(
float
min
,
float
max
)
public
static
float
randValueByFloat
(
float
min
,
float
max
)
{
{
return
(
float
)
random
.
NextDouble
()
*
(
max
-
min
)
+
min
;
return
(
float
)
random
.
NextDouble
()
*
(
max
-
min
)
+
min
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment