Exemplo n.º 1
0
        /// <summary>
        /// Apply all modifications to the ActiveEvent before it gets played
        /// </summary>
        /// <param name="activeEvent">The runtime event being prepared for playback</param>
        public override void ProcessNode(ActiveEvent activeEvent)
        {
            if (this.file == null)
            {
                Debug.LogWarningFormat("No file in node {0}", this.name);
                return;
            }

            activeEvent.ModulateVolume(this.volumeOffset);
            activeEvent.ModulatePitch(this.pitchOffset);
            activeEvent.clip = this.file;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Apply all modifications to the ActiveEvent before it gets played
        /// </summary>
        /// <param name="activeEvent">The runtime event being prepared for playback</param>
        public override void ProcessNode(ActiveEvent activeEvent)
        {
            if (file == null)
            {
                Debug.LogWarningFormat("Empty Voice File node in event {0}", activeEvent.rootEvent.name);
            }

            activeEvent.ModulateVolume(this.volumeOffset);
            activeEvent.ModulatePitch(this.pitchOffset);
            activeEvent.clip = this.file;
            activeEvent.text = this.text;
        }