*
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user