- Removed final remnants of LightSync from the project.
- Fixed jail chain potentially calling a GameManager function on all clients.
This commit is contained in:
@@ -50,31 +50,25 @@ MonoBehaviour:
|
||||
Data:
|
||||
- Name: $k
|
||||
Entry: 1
|
||||
Data: Camera
|
||||
Data: _Camera
|
||||
- Name: $v
|
||||
Entry: 7
|
||||
Data: 2|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
- Name: <Name>k__BackingField
|
||||
Entry: 1
|
||||
Data: Camera
|
||||
Data: _Camera
|
||||
- Name: <UserType>k__BackingField
|
||||
Entry: 7
|
||||
Data: 3|System.RuntimeType, mscorlib
|
||||
- Name:
|
||||
Entry: 1
|
||||
Data: MMMaellon.LightSync.LightSync, com.mmmaellon.lightsync
|
||||
Data: VRC.SDK3.Components.VRCObjectSync, VRCSDK3
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name: <SystemType>k__BackingField
|
||||
Entry: 7
|
||||
Data: 4|System.RuntimeType, mscorlib
|
||||
- Name:
|
||||
Entry: 1
|
||||
Data: VRC.Udon.UdonBehaviour, VRC.Udon
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
Entry: 9
|
||||
Data: 3
|
||||
- Name: <SyncMode>k__BackingField
|
||||
Entry: 7
|
||||
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
|
||||
@@ -89,10 +83,16 @@ MonoBehaviour:
|
||||
Data: true
|
||||
- Name: _fieldAttributes
|
||||
Entry: 7
|
||||
Data: 5|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
Data: 4|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 0
|
||||
Data: 1
|
||||
- Name:
|
||||
Entry: 7
|
||||
Data: 5|UnityEngine.SerializeField, UnityEngine.CoreModule
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 13
|
||||
Data:
|
||||
|
||||
@@ -1,25 +1,24 @@
|
||||
|
||||
using MMMaellon.LightSync;
|
||||
using UdonSharp;
|
||||
using UnityEngine;
|
||||
using VRC.SDK3.Components;
|
||||
using VRC.SDKBase;
|
||||
using VRC.Udon;
|
||||
|
||||
|
||||
[UdonBehaviourSyncMode(BehaviourSyncMode.Manual)]
|
||||
public class CameraAutoLevel : UdonSharpBehaviour
|
||||
{
|
||||
public LightSync Camera;
|
||||
[SerializeField] private VRCObjectSync _Camera;
|
||||
|
||||
|
||||
public override void Interact()
|
||||
{
|
||||
if (Utilities.IsValid(Camera))
|
||||
if (Utilities.IsValid(_Camera))
|
||||
{
|
||||
Vector3 oldRotation = Camera.gameObject.transform.eulerAngles;
|
||||
Camera.TeleportToWorldSpace(
|
||||
Camera.gameObject.transform.position,
|
||||
Quaternion.Euler(oldRotation.x, oldRotation.y, 0.0f),
|
||||
true);
|
||||
Transform TeleportLocation = _Camera.transform;
|
||||
Vector3 oldRotation = TeleportLocation.eulerAngles;
|
||||
TeleportLocation.eulerAngles = new Vector3(oldRotation.x, oldRotation.y, 0.0f);
|
||||
_Camera.TeleportTo(TeleportLocation);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user