private void PlayBossBornSound() { MonoEntityAudio component = Singleton <AvatarManager> .Instance.GetLocalAvatar().GetComponent <MonoEntityAudio>(); if (component != null) { component.PostBossBorn(); } }
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; } } }