public static GetSoundSlot ( SoundType type, string sound ) : int | ||
type | SoundType | |
sound | string | |
리턴 | int |
public static int GetSoundSlot(SoundType type, string sound)
{
if (sounds[type].ContainsKey(sound))
{
return sounds[type][sound];
}
else
{
return 0;
}
}
/// <summary> /// Shorthand for calling SoundLoader.GetSoundSlot(type, this.Name + '/' + name). /// </summary> /// <param name="type">The type.</param> /// <param name="name">The name.</param> /// <returns></returns> public int GetSoundSlot(SoundType type, string name) => SoundLoader.GetSoundSlot(type, Name + '/' + name);