Ejemplo n.º 1
0
 public override void OnAudioEvent(AudioEventCmd cmd)
 {
     if (this.filterEvent(cmd.args.get_stringParameter()))
     {
         SoundManager.Instance.PlayPlayer(base.get_transform().GetComponent <AudioPlayer>(), cmd.args.get_intParameter());
     }
 }
Ejemplo n.º 2
0
        public override void OnAudioEvent(AudioEventCmd cmd)
        {
            AudioPlayer audioPlayer = base.get_gameObject().AddUniqueComponent <AudioPlayer>();

            audioPlayer.RoleId = (long)this.InstanceID;
            if (SoundManager.Instance != null)
            {
                SoundManager.Instance.PlayPlayer(audioPlayer, cmd.args.get_intParameter());
            }
        }
Ejemplo n.º 3
0
 public virtual void OnAudioEvent(AudioEventCmd cmd)
 {
 }