标签: java class variables instance
答案 0 :(得分:0)
将对象设为公共静态,例如
public static Player player = new player();