コード例 #1
0
 // Use this for initialization
 void Awake()
 {
     if (gs == null)
     {
         DontDestroyOnLoad(this.gameObject);
         gs = this;
     }
     else if (gs != this)
     {
         Destroy(gameObject);
     }
 }
コード例 #2
0
 void OnApplicationQuit()
 {
     s_instance = null;
 }
コード例 #3
0
ファイル: GlobalVarManager.cs プロジェクト: kekidy/hardwings
 void OnApplicationQuit()
 {
     s_instance = null;
 }