示例#1
0
 void OnDestroy()
 {
     m_instance = null;
 }
示例#2
0
 void Awake()
 {
     DontDestroyOnLoad(gameObject);
     m_instance = this;
 }