19 lines
387 B
C#
19 lines
387 B
C#
using UnityEngine;
|
|||
|
|
using System.Collections;
|
||
|
|
|
||
|
|
public class SoundTable : MonoBehaviour {
|
||
|
|
public MaterialSounds[] materialSounds;
|
||
|
|
|
||
|
|
public MaterialSounds FindSounds(MaterialType mat){
|
||
|
|
if (materialSounds == null || materialSounds.Length < 1) {
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
foreach (var list in materialSounds) {
|
||
|
|
if(list.materialType == mat){
|
||
|
|
return list;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
}
|