static string pathMarche = "event:/Deplacement/humain-herbe"; // chemin du son pour les bruits de pas // Use this for initialization void Start() { marche = FMODUnity.RuntimeManager.CreateInstance("event:/Deplacement/humain-terre"); marchedeja = false; //terre = false; FM_SonScript.changerTypeSol(TypeSol.Herbe); }
void OnTriggerExit2D(Collider2D other) { FM_SonScript.changerTypeSol(TypeSol.Herbe); }
void OnTriggerEnter2D(Collider2D other) { FM_SonScript.changerTypeSol(type); }