在开放游戏中,很多情况需要定义一个类来“关联”相关信息。在一个脚本中Public 内部类,做相关的逻辑处理。

1,细节点;

在内部类上加:[System.Seriablizable] 可串行化

[System.Serializable]

public  class   TeachInfo{

public  GameObject[]  TeachGo;

public  int TeachList;

}

publicclass _Teach : MonoBehaviour {

public  TeachInfo[]  teachInfoS;

}

相关文章:

  • 2021-12-04
  • 2021-08-16
  • 2021-09-01
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-25
猜你喜欢
  • 2022-02-21
  • 2022-12-23
  • 2021-10-13
  • 2021-05-30
  • 2021-09-03
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案