あ、public抜けてたけどまあ通じると信じてる

static public class tmp {
static public GameObject a;
static public GameObject b;
}