Hey guys,
for part of my project i need to be able to access an integer and be able to edit from multiple different actors and different worlds. My first thought was to use a private int, but this didnt work. Any opinions?
Thanks.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 | class ZZZ { private static int thatThingYouWant; public void setThatThingYouWant( int val) { thatThingYouWant = val; } public int getThatThingYouWant() { return thatThingYouWant; } } |
1 | public static int getThatThingYouWant() |
1 2 3 4 5 6 | class ZZZ { static int someVar; /*here it is good for arrays and non changing images*/ someVar = 42 ; } |