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