예제 #1
0
        private int samplesToTake = 1024; // how many audio samples should we take?

        //singleton logic
        void OnEnable()
        {
            if (instance == null)
            {
                instance = this;
            }
        }
예제 #2
0
        private int samplesToTake = 1024; // how many audio samples should we take?

        //singleton logic
        void OnEnable()
        {
            if (instance == null)
            {
                instance = this;
            }
        }
예제 #3
0
 void OnDisable()
 {
     instance = null;
 }
예제 #4
0
 void OnDisable()
 {
     instance = null;
 }