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