コード例 #1
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
         DontDestroyOnLoad(gameObject);
     }
     else
     {
         Destroy(gameObject);
     }
 }
コード例 #2
0
 void OnEnable()
 {
     audioPlayTest = (AudioPlayTest)target;
     note          = serializedObject.FindProperty("note");
 }