Beispiel #1
0
        private void PlayBossBornSound()
        {
            MonoEntityAudio component = Singleton <AvatarManager> .Instance.GetLocalAvatar().GetComponent <MonoEntityAudio>();

            if (component != null)
            {
                component.PostBossBorn();
            }
        }
Beispiel #2
0
 private void TryToPlayUltraSound()
 {
     if (this.IsUltraSkill())
     {
         if (!this._avatarActor.CanUseSkill(this.SkillName))
         {
             this._hasPlayedUltraReadySound = false;
         }
         else if (!this._hasPlayedUltraReadySound)
         {
             MonoEntityAudio component = this._avatar.GetComponent <MonoEntityAudio>();
             if (component != null)
             {
                 component.PostUltraReady();
             }
             this._hasPlayedUltraReadySound = true;
         }
     }
 }