样式调整
This commit is contained in:
1 parent
7d0128d912
commit
ab9b6a86f3
24 files changed
+2626
-1655
No files matched your search
@@ -65,10 +65,14 @@ public class RaceHomeScript : RaceScript
|
||||
UIManager.ShowUserInfoPanel();
|
||||
});
|
||||
}
|
||||
var r = await ConfigHelper.mapCompetitionApi.GetCompetitionListV2("", 0, 5);
|
||||
var activityList = await ConfigHelper.mapCompetitionApi.GetCompetitionListV2("", 0, 3, activity: 1);
|
||||
var r = await ConfigHelper.mapCompetitionApi.GetCompetitionListV2("", 0, 7,order:0);
|
||||
var activityList = await ConfigHelper.mapCompetitionApi.GetCompetitionListV2("", 0, 3, activity: 1,order:1);
|
||||
DisplayMaps(r.data,activityList.data);
|
||||
Initial();
|
||||
Utils.StartTimeUnLimit(10, () =>
|
||||
{
|
||||
goRight();
|
||||
});
|
||||
}
|
||||
|
||||
private void DisplayMaps(List<MapCompetition> list, List<MapCompetition> activityList)
|
||||
@@ -78,14 +82,14 @@ public class RaceHomeScript : RaceScript
|
||||
smallGame = Resources.Load<GameObject>("UI/Prefab/Race/ItemSmall"),
|
||||
bannerItem = Resources.Load<GameObject>("UI/Prefab/Race/Banner/BannerItem"),
|
||||
dotItem = Resources.Load<GameObject>("UI/Prefab/Race/Banner/DotItem");
|
||||
for (i = 0; i < 2; i++)
|
||||
{
|
||||
var game = Instantiate<GameObject>(bigGame);
|
||||
game.GetComponent<RaceItemScript>().Initial(list[i], transform);
|
||||
game.transform.SetParent(rightContainer.Find("Container-1"));
|
||||
game.transform.localScale = Vector3.one;
|
||||
}
|
||||
for (; i < 5; i++)
|
||||
//for (i = 0; i < 2; i++)
|
||||
//{
|
||||
// var game = Instantiate<GameObject>(bigGame);
|
||||
// game.GetComponent<RaceItemScript>().Initial(list[i], transform);
|
||||
// game.transform.SetParent(rightContainer.Find("Container-1"));
|
||||
// game.transform.localScale = Vector3.one;
|
||||
//}
|
||||
for (; i < list.Count; i++)
|
||||
{
|
||||
var game = Instantiate<GameObject>(smallGame);
|
||||
game.GetComponent<RaceItemScript>().Initial(list[i], transform);
|
||||
|
||||
Reference in new issue
Block a user