// Use this for initialization void Start() { SoundDB sdb = new SoundDB("existing.db"); //ds.CreateDB (); var soundFiles = sdb.GetSoundFiles(); ToConsole(soundFiles); string soundFilePath = sdb.getSoundFilePath("Lion"); ToConsole("Searching for Lion Sound ..."); ToConsole(soundFilePath); }
private void StartSync() { var sdb = new SoundDB("AudioLibrary.db"); sdb.initDB(); var soundFiles = sdb.GetSoundFiles(); ToConsole(soundFiles); var soundPath = sdb.getSoundFilePath("Dog"); ToConsole("Searching for Dog ..."); ToConsole(soundPath); // sdb.createSoundFile("Zebra"); // ToConsole("New Animal has been created"); // var p = ds.GetAnimalSound ("Zebra"); // ToConsole(p.ToString()); }
void Start() { rb = GetComponent <Rigidbody2D>(); bound = GetComponent <BoxCollider2D>(); chrAnimation = GetComponent <Animator>(); soundDB = GetComponent <SoundDB>(); crouchSpeed = speed / 2; runSpeed = speed; currentHP = maxHealth; healthBar = GameObject.Find(PlayerNum + "HP").GetComponent <Slider>(); atk1 = attack1.GetComponent <AttackParameters>(); atk2 = attack2.GetComponent <AttackParameters>(); atk3 = attack3.GetComponent <AttackParameters>(); }