Fixed ClientRpc calls
This commit is contained in:
parent
8e00725dd0
commit
d8deb1654b
@ -5,6 +5,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Unity.Netcode;
|
||||
using UnityEngine;
|
||||
|
||||
namespace ScarletMansion {
|
||||
@ -41,7 +42,7 @@ namespace ScarletMansion {
|
||||
|
||||
}
|
||||
|
||||
public void OpenVentClientRpc(){
|
||||
public void OpenVent(){
|
||||
ScarletNetworkManager.Instance.CreateSpawnAudioPrefabLocal(transform.position);
|
||||
}
|
||||
|
||||
|
@ -39,7 +39,7 @@ namespace ScarletMansion.GamePatch {
|
||||
var scarlet = __instance as ScarletVent;
|
||||
if (scarlet && (scarlet.enemyType != scarlet.ignoreEnemyType || !KnightSpawnManager.WillSpawnOnSpawnPoint())) {
|
||||
Plugin.logger.LogDebug("Doing scalet open vent");
|
||||
scarlet.OpenVentClientRpc();
|
||||
scarlet.OpenVent();
|
||||
}
|
||||
|
||||
setActive = false;
|
||||
|
@ -79,6 +79,7 @@ namespace ScarletMansion.GamePatch.Items {
|
||||
AlertClientRpc();
|
||||
}
|
||||
|
||||
[ClientRpc]
|
||||
public void AlertClientRpc(){
|
||||
StartCoroutine(FlashRed());
|
||||
RoundManager.Instance.PlayAudibleNoise(transform.position, 12f, 0.9f);
|
||||
|
Loading…
x
Reference in New Issue
Block a user