Skip to content

Commit 00c13e8

Browse files
mat.aulesmat.aules
authored andcommitted
TeamSelection scene full working
1 parent e685dd9 commit 00c13e8

File tree

2 files changed

+16
-18
lines changed

2 files changed

+16
-18
lines changed

SlothWars/Assets/Resources/slothapedia.txt

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"att": 50,
66
"def": 20,
77
"ap": 5,
8-
"photo": "slothWizard"
9-
"idAb1": "M1"
10-
"idAb2": "M2"
8+
"photo": "slothWizard",
9+
"idAb1": "M1",
10+
"idAb2": "M2",
1111
"idAb3": "M3"
1212
},
1313

@@ -17,9 +17,9 @@
1717
"att": 20,
1818
"def": 60,
1919
"ap": 3,
20-
"photo": "slothTank"
21-
"idAb1": "T1"
22-
"idAb2": "T2"
20+
"photo": "slothTank",
21+
"idAb1": "T1",
22+
"idAb2": "T2",
2323
"idAb3": "T3"
2424
},
2525

@@ -29,9 +29,9 @@
2929
"att": 120,
3030
"def": 20,
3131
"ap": 5,
32-
"photo": "slothArcher"
33-
"idAb1": "P1"
34-
"idAb2": "P2"
32+
"photo": "slothArcher",
33+
"idAb1": "P1",
34+
"idAb2": "P2",
3535
"idAb3": "P3"
3636
},
3737

@@ -41,9 +41,9 @@
4141
"att": 20,
4242
"def": 50,
4343
"ap": 4,
44-
"photo": "slothHealer"
45-
"idAb1": "H1"
46-
"idAb2": "H2"
44+
"photo": "slothHealer",
45+
"idAb1": "H1",
46+
"idAb2": "H2",
4747
"idAb3": "H3"
4848
},
4949

@@ -53,9 +53,9 @@
5353
"att": 10,
5454
"def": 50,
5555
"ap": 6,
56-
"photo": "slothUtility"
57-
"idAb1": "U1"
58-
"idAb2": "U2"
56+
"photo": "slothUtility",
57+
"idAb1": "U1",
58+
"idAb2": "U2",
5959
"idAb3": "U3"
6060
}
6161

SlothWars/Assets/Scripts/TeamSelection/TeamSelection.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,11 +274,9 @@ void NextPageClick()
274274
void UpdateSlots()
275275
{
276276
int i = currentPage * 3;
277-
string path;
278277

279278
slot1Type.text = node[i]["type"];
280-
path = (string)node [i + 2] ["photo"];
281-
slot1Pic.transform.GetComponent<Image>().sprite = Resources.Load<Sprite>("slothTank"); // ASI FUNCTIONA
279+
slot1Pic.transform.GetComponent<Image>().sprite = Resources.Load<Sprite>(node [i] ["photo"]); // ASI FUNCTIONA
282280
slot1Health.text = node[i]["hp"];
283281
slot1Attack.text = node[i]["att"];
284282
slot1Defense.text = node[i]["def"];

0 commit comments

Comments
 (0)