Пример #1
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
         DontDestroyOnLoad(gameObject);
     }
     else
     {
         Destroy(gameObject);
     }
 }
 void OnEnable()
 {
     audioPlayTest = (AudioPlayTest)target;
     note          = serializedObject.FindProperty("note");
 }