- Added a special indoor post process volume to help with exposure changes.
- Secret Vulpine trigger is now network synced. - Horseshoe is now network synced. Continuous for now, manual sync is planned.
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
|
||||
using UdonSharp;
|
||||
using UnityEngine;
|
||||
using VRC.SDKBase;
|
||||
using VRC.Udon;
|
||||
|
||||
public class SecretVulpine : UdonSharpBehaviour
|
||||
{
|
||||
public GameObject Vulpine;
|
||||
|
||||
public override void Interact()
|
||||
{
|
||||
if (Vulpine != null)
|
||||
{
|
||||
Vulpine.SetActive(!Vulpine.activeSelf);
|
||||
RequestSerialization();
|
||||
}
|
||||
}
|
||||
}
|
||||
+69
-3
@@ -10,7 +10,7 @@ MonoBehaviour:
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: c333ccfdd0cbdbc4ca30cef2dd6e6b9b, type: 3}
|
||||
m_Name: SecretVulpine
|
||||
m_Name: SecretVulpineTrigger
|
||||
m_EditorClassIdentifier:
|
||||
serializedUdonProgramAsset: {fileID: 11400000, guid: 444456c545771e54e9155151732d669e,
|
||||
type: 2}
|
||||
@@ -21,7 +21,7 @@ MonoBehaviour:
|
||||
compiledVersion: 2
|
||||
behaviourSyncMode: 0
|
||||
hasInteractEvent: 1
|
||||
scriptID: -8610235078425832821
|
||||
scriptID: -2067154315038537254
|
||||
serializationData:
|
||||
SerializedFormat: 2
|
||||
SerializedBytes:
|
||||
@@ -44,7 +44,7 @@ MonoBehaviour:
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 1
|
||||
Data: 2
|
||||
- Name:
|
||||
Entry: 7
|
||||
Data:
|
||||
@@ -99,6 +99,72 @@ MonoBehaviour:
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 7
|
||||
Data:
|
||||
- Name: $k
|
||||
Entry: 1
|
||||
Data: FoxIsActive
|
||||
- Name: $v
|
||||
Entry: 7
|
||||
Data: 5|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
- Name: <Name>k__BackingField
|
||||
Entry: 1
|
||||
Data: FoxIsActive
|
||||
- Name: <UserType>k__BackingField
|
||||
Entry: 7
|
||||
Data: 6|System.RuntimeType, mscorlib
|
||||
- Name:
|
||||
Entry: 1
|
||||
Data: System.Boolean, mscorlib
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name: <SystemType>k__BackingField
|
||||
Entry: 9
|
||||
Data: 6
|
||||
- Name: <SyncMode>k__BackingField
|
||||
Entry: 7
|
||||
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
|
||||
- Name:
|
||||
Entry: 3
|
||||
Data: 1
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name: <IsSerialized>k__BackingField
|
||||
Entry: 5
|
||||
Data: false
|
||||
- Name: _fieldAttributes
|
||||
Entry: 7
|
||||
Data: 7|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 2
|
||||
- Name:
|
||||
Entry: 7
|
||||
Data: 8|UdonSharp.UdonSyncedAttribute, UdonSharp.Runtime
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 7
|
||||
Data: 9|UdonSharp.FieldChangeCallbackAttribute, UdonSharp.Runtime
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 13
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 13
|
||||
Data:
|
||||
@@ -0,0 +1,37 @@
|
||||
|
||||
using UdonSharp;
|
||||
using UnityEngine;
|
||||
using VRC.SDKBase;
|
||||
using VRC.Udon;
|
||||
|
||||
public class SecretVulpineTrigger : UdonSharpBehaviour
|
||||
{
|
||||
public GameObject Vulpine;
|
||||
|
||||
[UdonSynced, FieldChangeCallback(nameof(SetFoxActive))]
|
||||
private bool FoxIsActive = false;
|
||||
|
||||
|
||||
public override void Interact()
|
||||
{
|
||||
if (Vulpine != null)
|
||||
{
|
||||
Networking.SetOwner(Networking.LocalPlayer, gameObject);
|
||||
SetProgramVariable("FoxIsActive", !FoxIsActive);
|
||||
|
||||
RequestSerialization();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public bool SetFoxActive
|
||||
{
|
||||
set
|
||||
{
|
||||
Vulpine.SetActive(!Vulpine.activeSelf);
|
||||
FoxIsActive = value;
|
||||
}
|
||||
|
||||
get => FoxIsActive;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user