generated from raccoon/vrchat-project-template
Fucking finally
This commit is contained in:
@@ -14,9 +14,9 @@ public class GenericDoor : UdonSharpBehaviour
|
||||
[Tooltip("Sound when closing")]
|
||||
public AudioClip closingSound;
|
||||
[Tooltip("Start state of the \"Door\" (parameter \'isOpen\' in controller)"), UdonSynced, FieldChangeCallback(nameof(IsOpen))]
|
||||
public bool isOpen = false;
|
||||
public bool isOpen;
|
||||
[Tooltip("The \"Door\" opens from the other side (parameter \'reverse\' in controller)")]
|
||||
public bool reverse = false;
|
||||
public bool reverse;
|
||||
|
||||
public bool IsOpen
|
||||
{
|
||||
@@ -31,7 +31,7 @@ public class GenericDoor : UdonSharpBehaviour
|
||||
public override void Interact()
|
||||
{
|
||||
Networking.SetOwner(Networking.LocalPlayer, gameObject);
|
||||
IsOpen = !IsOpen;
|
||||
IsOpen = !animator.GetBool("isOpen");;
|
||||
RequestSerialization();
|
||||
}
|
||||
|
||||
|
||||
@@ -305,6 +305,7 @@ GameObject:
|
||||
m_Component:
|
||||
- component: {fileID: 644643761086828937}
|
||||
- component: {fileID: 8581911545463114097}
|
||||
- component: {fileID: 6211132235778279209}
|
||||
m_Layer: 0
|
||||
m_Name: door-sound
|
||||
m_TagString: Untagged
|
||||
@@ -343,12 +344,12 @@ AudioSource:
|
||||
m_Pitch: 1
|
||||
Loop: 0
|
||||
Mute: 0
|
||||
Spatialize: 0
|
||||
Spatialize: 1
|
||||
SpatializePostEffects: 0
|
||||
Priority: 128
|
||||
DopplerLevel: 1
|
||||
MinDistance: 1
|
||||
MaxDistance: 500
|
||||
MinDistance: 0.5
|
||||
MaxDistance: 5
|
||||
Pan2D: 0
|
||||
rolloffMode: 0
|
||||
BypassEffects: 0
|
||||
@@ -423,6 +424,24 @@ AudioSource:
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
--- !u!114 &6211132235778279209
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7681430886952281138}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -617992517, guid: 661092b4961be7145bfbe56e1e62337b, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
Gain: 10
|
||||
Far: 40
|
||||
Near: 0
|
||||
VolumetricRadius: 0
|
||||
EnableSpatialization: 1
|
||||
UseAudioSourceVolumeCurve: 1
|
||||
--- !u!1001 &4916885274060218817
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
|
||||
Reference in New Issue
Block a user