示例#1
0
 public bool Initialize()
 {
     if (Instance == null)
     {
         Instance       = this;
         _soundDatabase = SoundDatabase.SoundDatabaseHandler;
         _birdSongs     = new Queue <AudioClipUrlPair>();
         RefillIfBelowThreshold();
         return(true);
     }
     else
     {
         return(false);
     }
 }
示例#2
0
        public bool Initialize()
        {
            if (SoundDatabaseHandler == null)
            {
                SoundDatabaseHandler = this;
                GetAllFilePaths();
                DeserializeDatabase();

                return(true);
            }
            else
            {
                return(false);
            }
        }