CacheEventInstance() публичный Метод

public CacheEventInstance ( ) : void
Результат void
Пример #1
0
    public void StartEvent(string key, AudioChannel channel = AudioChannel.Action, bool stopPre = true, string para = "", float value = 0f)
    {
        FMOD_StudioEventEmitter emitter = this.GetEmitter(channel);

        if (stopPre)
        {
            emitter.OnDestroy();
        }
        if (!string.IsNullOrEmpty(key))
        {
            emitter.path = key;
        }
        emitter.CacheEventInstance();
        this.SetParamValue(channel, para, value);
        if (this._3dPos != Vector3.zero)
        {
            emitter.Update3DAttributes(this._3dPos);
            this._3dPos = Vector3.zero;
        }
        emitter.StartEvent();
    }