Filing cabinet now properly opens and closes for all players without issue.
This commit is contained in:
@@ -31,30 +31,6 @@ public class FilingCabinetNoteDispenser : UdonSharpBehaviour
|
||||
_ClueImageDownloader = new VRCImageDownloader();
|
||||
}
|
||||
|
||||
public bool Activate
|
||||
{
|
||||
set
|
||||
{
|
||||
_Activate = value;
|
||||
|
||||
if (_Note != "") _Animator.SetBool("Spring Action", _Activate);
|
||||
|
||||
_ClueCard.localPosition = Vector3.zero;
|
||||
_ClueCard.localRotation = Quaternion.identity;
|
||||
|
||||
_ImageCard.transform.localPosition = Vector3.zero;
|
||||
_ImageCard.transform.localRotation = Quaternion.identity;
|
||||
|
||||
if (_Activate && Note != "")
|
||||
{
|
||||
_AudioManager.SendCustomNetworkEvent(NetworkEventTarget.All, "PlaySFX", SFXEventType.Boing2);
|
||||
}
|
||||
|
||||
RequestSerialization();
|
||||
}
|
||||
get => _Activate;
|
||||
}
|
||||
|
||||
|
||||
private void LoadClueImage()
|
||||
{
|
||||
@@ -81,6 +57,35 @@ public class FilingCabinetNoteDispenser : UdonSharpBehaviour
|
||||
}
|
||||
|
||||
|
||||
public bool Activate
|
||||
{
|
||||
set
|
||||
{
|
||||
if (_Activate != value)
|
||||
{
|
||||
_Activate = value;
|
||||
|
||||
_ClueCard.localPosition = Vector3.zero;
|
||||
_ClueCard.localRotation = Quaternion.identity;
|
||||
|
||||
_ImageCard.transform.localPosition = Vector3.zero;
|
||||
_ImageCard.transform.localRotation = Quaternion.identity;
|
||||
|
||||
if (Note != "")
|
||||
{
|
||||
_Animator.SetBool("Spring Action", _Activate);
|
||||
if (_Activate)
|
||||
{
|
||||
_AudioManager.PlaySFX(SFXEventType.Boing2);
|
||||
}
|
||||
}
|
||||
|
||||
RequestSerialization();
|
||||
}
|
||||
}
|
||||
get => _Activate;
|
||||
}
|
||||
|
||||
public string Note
|
||||
{
|
||||
set
|
||||
|
||||
Reference in New Issue
Block a user