Inheritance: UnityEngine.MonoBehaviour
コード例 #1
0
ファイル: EditorFilter.cs プロジェクト: KSP-RO/TacLifeSupport
 public void Awake()
 {
     if (Instance != null)
     {
         Destroy(this);
     }
     Instance = this;
     DontDestroyOnLoad(this);
 }
コード例 #2
0
 public void Awake()
 {
     if (Instance != null)
     {
         Destroy(this);
     }
     Instance = this;
     DontDestroyOnLoad(this);
 }