AR轨迹逻辑
This commit is contained in:
1 parent
195893a1b0
commit
d1c84d0a8a
30 files changed
+159988
-4149
No files matched your search
@@ -15,13 +15,13 @@ public class MultiTips:PFUIText
|
||||
{
|
||||
base.Awake();
|
||||
text = GetComponent<Text>();
|
||||
var result = ConfigHelper.mapApi.GetTipsList();
|
||||
if (result.result)
|
||||
{
|
||||
tips = result.data.ToArray();
|
||||
random = new System.Random();
|
||||
currentIndex = random.Next(0, tips.Length);
|
||||
}
|
||||
//var result = ConfigHelper.mapApi.GetTipsList();
|
||||
//if (result.result)
|
||||
//{
|
||||
// tips = result.data.ToArray();
|
||||
// random = new System.Random();
|
||||
// currentIndex = random.Next(0, tips.Length);
|
||||
//}
|
||||
SetText();
|
||||
}
|
||||
// Start is called before the first frame update
|
||||
@@ -31,7 +31,7 @@ public class MultiTips:PFUIText
|
||||
}
|
||||
public void SetText()
|
||||
{
|
||||
if(text == null || tips.Length == 0)
|
||||
if(text == null || tips == null|| tips.Length == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user