File tree Expand file tree Collapse file tree 2 files changed +16
-18
lines changed
Expand file tree Collapse file tree 2 files changed +16
-18
lines changed Original file line number Diff line number Diff line change 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
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
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
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
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
Original file line number Diff line number Diff 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" ] ;
You can’t perform that action at this time.
0 commit comments