コード例 #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;
 }