kõik vanad helid lisatud, peaaegu kõik esimese iteratsiooni helid on lisatud, auto jaoks üks lisaloogika on tehtud
This commit is contained in:
@@ -158,6 +158,7 @@ public class AudioManager : MonoBehaviour
|
||||
EventInstance instance = RuntimeManager.CreateInstance(sound);
|
||||
RuntimeManager.AttachInstanceToGameObject(instance, go);
|
||||
instance.start();
|
||||
// instance.release();
|
||||
|
||||
eventInstances.Add(instance);
|
||||
return instance;
|
||||
@@ -168,7 +169,6 @@ public class AudioManager : MonoBehaviour
|
||||
if (!instance.isValid()) return;
|
||||
instance.stop(mode);
|
||||
instance.release();
|
||||
eventInstances.Remove(instance);
|
||||
}
|
||||
|
||||
public void SetParameter(EventInstance instance, string parameterName, float value)
|
||||
@@ -177,6 +177,11 @@ public class AudioManager : MonoBehaviour
|
||||
instance.setParameterByName(parameterName, value);
|
||||
}
|
||||
|
||||
public void SetGlobalParameter(string parameterName, float value)
|
||||
{
|
||||
RuntimeManager.StudioSystem.setParameterByName(parameterName, value);
|
||||
}
|
||||
|
||||
public void InitializeMusic(EventReference musicEventReference)
|
||||
{
|
||||
if (musicEventReference.Guid == nullGuid)
|
||||
|
||||
Reference in New Issue
Block a user