收起
在P1上创建一个变量 public P2 p2; 然后在Inspector面板上将p2挂载的游戏物体给赋值给P1,就可以在P1代码里面调用p2.Reset()了。
public P2 p2;
p2.Reset()
报告相同问题?