修改细节
This commit is contained in:
1 parent
ca938ab6f5
commit
952e5038ed
19 files changed
+1542
-286
No files matched your search
@@ -22,6 +22,7 @@ public class RaceHomeScript : RaceScript
|
||||
{
|
||||
base.Show();
|
||||
handleAvatar();
|
||||
GetData();
|
||||
}
|
||||
void Start()
|
||||
{
|
||||
@@ -58,8 +59,7 @@ public class RaceHomeScript : RaceScript
|
||||
UIManager.ShowRaceListPanel();
|
||||
};
|
||||
});
|
||||
handleAvatar();
|
||||
GetData();
|
||||
|
||||
}
|
||||
|
||||
async void GetData()
|
||||
@@ -87,6 +87,15 @@ public class RaceHomeScript : RaceScript
|
||||
// game.transform.SetParent(rightContainer.Find("Container-1"));
|
||||
// game.transform.localScale = Vector3.one;
|
||||
//}
|
||||
foreach (Transform t in rightContainer.Find("Container-2"))
|
||||
{
|
||||
if (t.name != "BtnGoList")
|
||||
{
|
||||
t.gameObject.Destroy();
|
||||
}
|
||||
}
|
||||
scroll.transform.Find("DotList").DestroyChildren();
|
||||
scroll.content.DestroyChildren();
|
||||
for (; i < list.Count; i++)
|
||||
{
|
||||
var game = Instantiate<GameObject>(smallGame);
|
||||
|
||||
Reference in new issue
Block a user