I have public variable score
in script scr_a
that attach to object obj_a
in scene sce_a
.
now I need to access the variable (score) in script scr_b
that attach to object obj_b
in scene sce_b
.
I have try something but they did not work and I think that's because my scripts are in two different scene...
DontDestroyOnLoad()
method. \$\endgroup\$ – Paweł Marecki Aug 12 '16 at 6:29