I don't understand your question. Global variables are not reset between layouts. So if you save a score in a global variable and then switch to another layout, the score will still be there.
Or are you asking about sharing data between two different games (two different projects)?