コード例 #1
0
ファイル: CozyInputManager.cs プロジェクト: cristi16/CozyGame
 void Awake()
 {
     if (s_Instance != null)
     {
         Destroy(this);
     }
     else
     {
         s_Instance = this;
         DontDestroyOnLoad(this);
     }
 }
コード例 #2
0
ファイル: CozyInputManager.cs プロジェクト: cristi16/CozyGame
 void OnDestroy()
 {
     s_Instance = null;
 }