public static void playAttackSound(string id, int type) { #if UNITY_EDITOR if (BattleSimulator.nowSimulation && BattleSimulator.instance.skipTime > 1) { return; } #endif if (GameManager.info.soundData.TryGetValue(id, out _sd) == false) { return; } if (string.IsNullOrEmpty(_sd.link) == false) { playAttackSound(_sd.link, type); return; } play(_sd.getCharacterAtkSound(type)); }