コード例 #1
0
ファイル: SoundsManager.cs プロジェクト: boboshu/Smart-Core
 void Awake()
 {
     instance = this;
     if (dontDestroyOnLoad)
     {
         DontDestroyOnLoad(gameObject);
     }
 }
コード例 #2
0
ファイル: SoundsManager.cs プロジェクト: boboshu/Smart-Core
 void OnDestroy()
 {
     instance = null;
 }