public static void InitializeObjectSync(VRC_ObjectSync sync) { var helper = sync.GetComponent <CyanEmuObjectSyncHelper>(); if (helper) { DestroyImmediate(helper); } sync.gameObject.AddComponent <CyanEmuObjectSyncHelper>(); }
public static void FlagDiscontinuityHook(VRC_ObjectSync sync) { sync.GetComponent <CyanEmuObjectSyncHelper>().FlagDiscontinuity(); }
public static bool GetUseGravity(VRC_ObjectSync sync) { return(sync.GetComponent <CyanEmuObjectSyncHelper>().GetUseGravity()); }
public static bool GetIsKinematic(VRC_ObjectSync sync) { return(sync.GetComponent <CyanEmuObjectSyncHelper>().GetIsKinematic()); }
public static void SetUseGravity(VRC_ObjectSync sync, bool value) { sync.GetComponent <CyanEmuObjectSyncHelper>().SetUseGravity(value); }
public static void SetIsKinematic(VRC_ObjectSync sync, bool value) { sync.GetComponent <CyanEmuObjectSyncHelper>().SetIsKinematic(value); }
public static void RespawnObject(VRC_ObjectSync sync) { sync.GetComponent <CyanEmuObjectSyncHelper>().Respawn(); }
public static void TeleportTo(VRC_ObjectSync obj, Vector3 position, Quaternion rotation) { obj.GetComponent <CyanEmuObjectSyncHelper>().TeleportTo(position, rotation); }