Beispiel #1
0
 void Update()
 {
     if (audioResource != EAudioResource.NONE && lastAudioResource != audioResource)
     {
         lastAudioResource = audioResource;
         audioPath         = audioResource.GetPath();
         ReloadResources();
     }
 }
Beispiel #2
0
 void Update()
 {
     if (audioResource != EAudioResource.NONE && lastAudioResource != audioResource)
     {
         lastAudioResource = audioResource;
         audioPath         = audioResource.GetPath();
         Theme currentTheme = ThemeManager.Instance.GetCurrentTheme();
         ReloadResources(currentTheme);
     }
 }
Beispiel #3
0
    public static string GetPath(this EAudioResource eAudioResource)
    {
        switch (eAudioResource)
        {
        case EAudioResource.DEMO_BUTTON_CLICK1: return("themedemo/button_click1");

        default:
            throw new ArgumentException("No audio resource path defined for enum value " + eAudioResource.ToString());
        }
    }